You are here

function commerce_email_menu in Commerce Email 7

Same name and namespace in other branches
  1. 7.2 commerce_email.module \commerce_email_menu()

Implements hook_menu().

File

./commerce_email.module, line 11
Defines additional menu item and order html email functonality.

Code

function commerce_email_menu() {
  $items = array();
  $items['admin/commerce/config/email'] = array(
    'title' => 'Emails',
    'description' => 'Administer commerce emails',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'commerce_email_form',
    ),
    'access arguments' => array(
      'configure store',
    ),
    'type' => MENU_NORMAL_ITEM,
    'weight' => 99,
  );
  $items['admin/commerce/config/email/content'] = array(
    'title' => 'Content',
    'description' => 'Administer commerce emails',
    'weight' => 0,
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/commerce/config/email/settings'] = array(
    'title' => 'Settings',
    'description' => 'Manage email settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'commerce_email_settings_form',
    ),
    'access arguments' => array(
      'configure store',
    ),
    'weight' => 1,
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}