You are here

function forward_menu in Forward 5

Same name and namespace in other branches
  1. 6 forward.module \forward_menu()
  2. 7.3 forward.module \forward_menu()
  3. 7 forward.module \forward_menu()
  4. 7.2 forward.module \forward_menu()

Menu Hooks

File

./forward.module, line 29

Code

function forward_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/logs/forward',
      'description' => 'Track forwarded posts',
      'title' => t('Forward tracking'),
      'callback' => 'forward_tracking',
      'access' => user_access('administer forward'),
    );
    $items[] = array(
      'path' => 'admin/settings/forward',
      'description' => t('Configure settings for forward module.'),
      'title' => t('Forward'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'forward_admin_settings',
      ),
      'access' => user_access('administer forward'),
      'type' => MENU_NORMAL_ITEM,
    );
    $items[] = array(
      'path' => 'epostcard',
      'title' => variable_get('forward_epostcard_title', t('Send an e-Postcard')),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'forward_form',
        'epostcard',
      ),
      'access' => user_access('access epostcard'),
      'type' => MENU_NORMAL_ITEM,
    );
    $items[] = array(
      'path' => 'forward/emailref',
      'title' => t('Track email clickthrus'),
      'callback' => 'forward_tracker',
      'access' => user_access('access content'),
      'type' => MENU_CALLBACK,
    );
    $items[] = array(
      'path' => 'forward',
      'title' => variable_get('forward_page_title', t('Forward this page')),
      'callback' => 'forward_page',
      'access' => user_access('access forward'),
      'type' => MENU_CALLBACK,
    );
  }
  return $items;
}