function css_injector_menu in CSS Injector 7
Same name and namespace in other branches
- 6 css_injector.module \css_injector_menu()
Implements hook_menu(). Defines menu callbacks for CSS Injector's configuration pages.
File
- ./
css_injector.module, line 104 - 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/config/development/css-injector/settings' => array(
'title' => 'CSS injector module settings',
'description' => 'Settings page for CSS injector module.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'css_injector_admin',
),
'access arguments' => array(
'administer css injection settings',
),
'type' => MENU_LOCAL_ACTION,
),
'admin/config/development/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',
'type' => MENU_NORMAL_ITEM,
),
'admin/config/development/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/config/development/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/config/development/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;
}