function commerce_billy_mail_menu in Commerce Billy Mail 7
Implements hook_menu().
File
- ./
commerce_billy_mail.module, line 6
Code
function commerce_billy_mail_menu() {
$items['admin/commerce/config/billy-invoice/billy-mail'] = array(
'title' => 'Billy Mail',
'description' => 'Configure Commerce Billy Mail settings.',
'access arguments' => array(
'administer site configuration',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'commerce_billy_mail_settings_form',
),
'type' => MENU_LOCAL_TASK,
'file' => 'commerce_billy_mail.admin.inc',
);
$items['admin/commerce/orders/%commerce_order/edit/resend-pdf-invoice'] = array(
'title' => 'Resend invoice mail',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'commerce_billy_mail_resend_form',
3,
),
'access callback' => 'commerce_billy_mail_resend_access',
'access arguments' => array(
3,
),
'type' => MENU_LOCAL_ACTION,
'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE,
'weight' => 10,
'file' => 'commerce_billy_mail.module',
'file path' => drupal_get_path('module', 'commerce_billy_mail') . '/',
// We have to set the base theme here, otherwise the admin page
// will wrongly inherit the admin theme for theming.
'theme callback' => 'commerce_billy_mail_custom_theme',
);
return $items;
}