You are here

function themekey_css_menu in ThemeKey 7.3

Implements hook_menu().

File

themekey_css/themekey_css.module, line 6

Code

function themekey_css_menu() {
  $items = array();
  $items['admin/config/user-interface/themekey/css'] = array(
    'title' => 'Adding CSS Rule Chain',
    'description' => 'Set up rules to add css files dynamically, depending on Drupal paths or different properties.',
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer theme assignments',
    ),
    'file' => 'themekey_css_admin.inc',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'themekey_css_rule_chain_form',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 1,
  );
  $items['admin/config/user-interface/themekey/css/delete'] = array(
    'title' => 'Delete ThemeKey Rule',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'themekey_css_admin_delete_rule_confirm',
      1,
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer theme assignments',
    ),
    'file' => 'themekey_css_admin.inc',
    'type' => MENU_CALLBACK,
  );
  return $items;
}