function contemplate_menu in Content Templates (Contemplate) 7
Same name and namespace in other branches
- 5 contemplate.module \contemplate_menu()
- 6 contemplate.module \contemplate_menu()
Implements hook_menu().
File
- ./
contemplate.module, line 69 - Create templates to customize teaser and body content.
Code
function contemplate_menu() {
$items = array();
$items['admin/structure/types/templates'] = array(
'title' => t('Content Templates'),
'description' => 'Create templates to customize output of teaser and body content.',
//'page callback' => 'contemplate_edit_type',
'page callback' => 'contemplate_admin',
'access arguments' => array(
'administer templates',
),
'type' => MENU_LOCAL_TASK,
'weight' => 7,
);
$items['admin/structure/types/manage/%node_type/template'] = array(
'title' => t('Content Template'),
'page callback' => 'contemplate_edit_type',
'page arguments' => array(
4,
),
'access arguments' => array(
'administer templates',
),
'type' => MENU_LOCAL_TASK,
'weight' => 10,
);
$items['admin/config/contemplate'] = array(
'title' => t('Content Template Settings'),
'page callback' => 'drupal_get_form',
'description' => t('Manage Content Template settings'),
'page arguments' => array(
'contemplate_system_settings',
),
'access arguments' => array(
'administer templates',
),
);
$items['contemplate/ajax/preview/%node/%'] = array(
'title' => 'preview of the node when passed through',
'description' => 'so the user can see what the node will look like with the current code',
'page callback' => 'contemplate_ajax_preview',
'page arguments' => array(
3,
4,
),
'access arguments' => array(
'administer templates',
),
'type' => MENU_CALLBACK,
);
return $items;
}