You are here

function beautytips_manager_menu in BeautyTips 7.2

Same name and namespace in other branches
  1. 6.2 beautytips_manager.module \beautytips_manager_menu()

Implements hook_menu().

File

./beautytips_manager.module, line 11
Code related to defining and displaying custom beautytips and styles.

Code

function beautytips_manager_menu() {
  $items['admin/config/user-interface/beautytips/custom-tips'] = [
    'title' => 'BeautyTips Custom-Tips',
    'page callback' => 'beautytips_manager_tips_manager_page',
    'access arguments' => [
      'administer site configuration',
    ],
    'file' => 'beautytips_manager.admin.inc',
    'type' => MENU_LOCAL_TASK,
  ];
  $items['admin/config/user-interface/beautytips/custom-tips/%/edit'] = [
    'title' => 'BeautyTips Custom-Tip Edit',
    'page callback' => 'drupal_get_form',
    'page arguments' => [
      'beautytips_manager_custom_tips_form',
      5,
    ],
    'access arguments' => [
      'administer site configuration',
    ],
    'file' => 'beautytips_manager.admin.inc',
    'type' => MENU_VISIBLE_IN_BREADCRUMB,
  ];
  $items['admin/config/user-interface/beautytips/custom-tips/%/delete'] = [
    'title' => 'BeautyTips Custom-Tip Delete',
    'page callback' => 'drupal_get_form',
    'page arguments' => [
      'beautytips_manager_delete_tip_confirm_form',
      5,
    ],
    'access arguments' => [
      'administer site configuration',
    ],
    'file' => 'beautytips_manager.admin.inc',
    'type' => MENU_VISIBLE_IN_BREADCRUMB,
  ];
  $items['admin/config/user-interface/beautytips/custom-tips/add'] = [
    'title' => 'BeautyTips Custom-Tip Add',
    'page callback' => 'drupal_get_form',
    'page arguments' => [
      'beautytips_manager_custom_tips_form',
    ],
    'access arguments' => [
      'administer site configuration',
    ],
    'file' => 'beautytips_manager.admin.inc',
    'type' => MENU_LOCAL_ACTION,
  ];
  $items['admin/config/user-interface/beautytips/custom-styles'] = [
    'title' => 'BeautyTips Custom Styles',
    'page callback' => 'beautytips_manager_styles_manager_page',
    'access arguments' => [
      'administer site configuration',
    ],
    'file' => 'beautytips_manager.admin.inc',
    'type' => MENU_LOCAL_TASK,
  ];
  $items['admin/config/user-interface/beautytips/custom-styles/%/edit'] = [
    'title' => 'BeautyTips Custom Style Edit',
    'page callback' => 'drupal_get_form',
    'page arguments' => [
      'beautytips_manager_custom_styles_form',
      5,
    ],
    'access arguments' => [
      'administer site configuration',
    ],
    'file' => 'beautytips_manager.admin.inc',
    'type' => MENU_VISIBLE_IN_BREADCRUMB,
  ];
  $items['admin/config/user-interface/beautytips/custom-styles/%/delete'] = [
    'title' => 'BeautyTips Manager Delete',
    'page callback' => 'beautytips_manager_delete_style_page',
    'page arguments' => [
      5,
    ],
    'access arguments' => [
      'administer site configuration',
    ],
    'file' => 'beautytips_manager.admin.inc',
    'type' => MENU_VISIBLE_IN_BREADCRUMB,
  ];
  $items['admin/config/user-interface/beautytips/custom-styles/add'] = [
    'title' => 'BeautyTips Custom Style Add',
    'page callback' => 'drupal_get_form',
    'page arguments' => [
      'beautytips_manager_custom_styles_form',
    ],
    'access arguments' => [
      'administer site configuration',
    ],
    'file' => 'beautytips_manager.admin.inc',
    'type' => MENU_LOCAL_ACTION,
  ];
  return $items;
}