function css_injector_menu in CSS Injector 6
Same name and namespace in other branches
- 7 css_injector.module \css_injector_menu()
Implementation of hook_menu(). Defines menu callbacks for CSS Injector's configuration pages.
File
- ./
css_injector.module, line 45 - Allows administrators to inject CSS into the page output based on configurable rules. Useful for adding simple CSS tweaks without modifying a site's official theme.
Code
function css_injector_menu() {
$items = array(
'admin/settings/css_injector' => array(
'title' => 'CSS injector',
'description' => 'Add CSS to the page output based on configurable rules.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'css_injector_admin_form',
),
'access arguments' => array(
'administer css injection',
),
'file' => 'css_injector.admin.inc',
),
'admin/settings/css_injector/edit' => array(
'title' => 'Edit CSS injector rule',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'css_injector_edit',
),
'access arguments' => array(
'administer css injection',
),
'file' => 'css_injector.admin.inc',
'type' => MENU_CALLBACK,
),
'admin/settings/css_injector/add' => array(
'title' => 'Add CSS injector rule',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'css_injector_edit',
),
'access arguments' => array(
'administer css injection',
),
'file' => 'css_injector.admin.inc',
'type' => MENU_CALLBACK,
),
'admin/settings/css_injector/delete' => array(
'title' => 'Delete CSS injector rule',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'css_injector_delete_confirm',
),
'access arguments' => array(
'administer css injection',
),
'file' => 'css_injector.admin.inc',
'type' => MENU_CALLBACK,
),
);
return $items;
}