function sheetnode_menu in Sheetnode 7.2
Same name and namespace in other branches
- 5 sheetnode.module \sheetnode_menu()
- 6 sheetnode.module \sheetnode_menu()
- 7 sheetnode.module \sheetnode_menu()
Implements hook_menu().
File
- ./
sheetnode.module, line 445 - Module file for the sheetnode module.
Code
function sheetnode_menu() {
$items = array();
$items['sheetnode/load'] = array(
'type' => MENU_CALLBACK,
'page callback' => '_sheetnode_ajax_load',
'access arguments' => array(
'access content',
),
);
$items['sheetnode/field'] = array(
'type' => MENU_CALLBACK,
'page callback' => '_sheetnode_ajax_field',
'access arguments' => array(
'access content',
),
);
$items['sheetnode/token'] = array(
'type' => MENU_CALLBACK,
'page callback' => '_sheetnode_ajax_token',
'access arguments' => array(
'access content',
),
);
$items['node/add/sheetnode_template'] = array(
'title' => 'Sheetnode import from template',
'access arguments' => array(
'create sheetnode',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'sheetnode_import_template',
),
'description' => 'Create a new sheetnode from an existing template.',
);
$items['admin/config/content/sheetnode'] = array(
'title' => 'Sheetnode',
'access arguments' => array(
'administer site configuration',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'sheetnode_admin_settings',
),
'description' => 'Configure sheetnodes and sheetnode components.',
'type' => MENU_NORMAL_ITEM,
);
$items['admin/config/system/content/general'] = array(
'title' => 'General',
'weight' => -10,
'type' => MENU_DEFAULT_LOCAL_TASK,
);
return $items;
}