-
Notifications
You must be signed in to change notification settings - Fork 1
/
commerce_autopay.module
54 lines (48 loc) · 1.14 KB
/
commerce_autopay.module
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/**
* @file commerce_autopay.module
* Provides recurring framework for Drupal Commerce
*/
/**
* Implements hook_menu().
*/
function commerce_autopay_menu() {
$items = array();
$items['admin/commerce/config/recurring'] = array(
'title' => 'Recurring Orders',
'file' => 'commerce_autopay.admin.inc',
'access arguments' => array('administer commerce autopay'),
'type' => MENU_NORMAL_ITEM,
'page callback' => 'drupal_get_form',
'page arguments' => array('commerce_autopay_admin_form')
);
return $items;
}
/**
* Implements hook_permission()
*/
function commerce_autopay_permission() {
return array(
'administer commerce autopay' => array(
'title' => t('Administer Commerce Recurring')
)
);
}
/**
* Implements hook_help().
*/
function commerce_autopay_help($path, $arg) {
switch ($path) {
case 'admin/help#commerce_autopay':
return t("Provides autopay payment options for Drupal Commerce");
}
}
/**
* Implements hook_views_api().
*/
function commerce_autopay_views_api() {
return array(
'api' => 3,
'path' => drupal_get_path('module', 'commerce_autopay') . '/includes/views',
);
}