You are here

function supersized_menu in Supersized 7

Same name and namespace in other branches
  1. 8 supersized.module \supersized_menu()

Implements hook_menu().

File

./supersized.module, line 450
Supersized module file.

Code

function supersized_menu() {
  $items = array();
  $items['node/%node/supersized'] = array(
    'title' => 'Supersized settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'supersized_node_settings_form',
      1,
    ),
    'access callback' => 'supersized_node_settings_access',
    'access arguments' => array(
      1,
    ),
    'weight' => 1,
    'type' => MENU_LOCAL_TASK,
    'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE,
  );
  $items['node/%node/supersized/delete'] = array(
    'title' => 'Delete Supersized settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'supersized_node_settings_delete_confirm',
      1,
    ),
    'access callback' => 'supersized_node_settings_access',
    'access arguments' => array(
      1,
    ),
    'weight' => 1,
    'type' => MENU_LOCAL_TASK,
    'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE,
  );
  return $items;
}