function nodewords_admin_menu in Nodewords: D6 Meta Tags 6.2
Same name and namespace in other branches
- 6.3 nodewords_admin/nodewords_admin.module \nodewords_admin_menu()
Implements hook_menu().
File
- nodewords_admin/
nodewords_admin.module, line 36 - Administration interface for Nodewords.
Code
function nodewords_admin_menu() {
$admin_access = array(
'administer meta tags',
);
$items = array();
$items['admin/content/nodewords'] = array(
'title' => 'Meta tags',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'nodewords_admin_settings_form',
),
'description' => 'Configure HTML meta tags for all the content.',
'access arguments' => $admin_access,
'type' => MENU_NORMAL_ITEM,
'file' => 'nodewords_admin.admin.inc',
);
$items['admin/content/nodewords/settings'] = array(
'title' => 'General settings',
'access arguments' => $admin_access,
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -1,
'file' => 'nodewords_admin.admin.inc',
);
$items['admin/content/nodewords/default'] = array(
'title' => 'Default meta tags',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'nodewords_admin_tags_edit_form',
array(
'type' => NODEWORDS_TYPE_DEFAULT,
),
),
'access arguments' => $admin_access,
'type' => MENU_LOCAL_TASK,
'file' => 'nodewords_admin.admin.inc',
);
$items['admin/content/nodewords/meta-tags'] = array(
'title' => 'Specific meta tags',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'nodewords_admin_tags_edit_form',
array(
'type' => NODEWORDS_TYPE_ERRORPAGE,
'id' => 403,
),
),
'access arguments' => $admin_access,
'type' => MENU_LOCAL_TASK,
'file' => 'nodewords_admin.admin.inc',
);
$items['admin/content/nodewords/meta-tags/errorpage_403'] = array(
'title' => 'Error 403 page',
'access arguments' => $admin_access,
'type' => MENU_DEFAULT_LOCAL_TASK,
'file' => 'nodewords_admin.admin.inc',
);
$items['admin/content/nodewords/meta-tags/errorpage_404'] = array(
'title' => 'Error 404 page',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'nodewords_admin_tags_edit_form',
array(
'type' => NODEWORDS_TYPE_ERRORPAGE,
'id' => 404,
),
),
'access arguments' => $admin_access,
'type' => MENU_LOCAL_TASK,
'file' => 'nodewords_admin.admin.inc',
);
return $items;
}