function geshifilter_menu in GeSHi Filter for syntax highlighting 7
Same name and namespace in other branches
- 5.2 geshifilter.module \geshifilter_menu()
- 5 geshifilter.module \geshifilter_menu()
- 6 geshifilter.module \geshifilter_menu()
Implements hook_menu().
File
- ./
geshifilter.module, line 77 - An input filter for syntax highlighting using the GeSHi library.
Code
function geshifilter_menu() {
$items = array();
$items['admin/config/content/formats/geshifilter'] = array(
'title' => 'GeSHi Filter',
'description' => 'Configure the GeSHi filter.',
'file' => 'geshifilter.admin.inc',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'geshifilter_admin_general_settings',
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_NORMAL_ITEM,
);
$items['admin/config/content/formats/geshifilter/general'] = array(
'title' => 'General settings',
'description' => 'General GeSHi filter settings.',
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/config/content/formats/geshifilter/filterconflicts'] = array(
'title' => 'Filter conflicts',
'description' => 'Information on possible conflicts with other filters.',
'file' => 'geshifilter.conflicts.inc',
'page callback' => 'geshifilter_admin_filter_conflicts',
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_LOCAL_TASK,
'weight' => 10,
);
// language settings
$items['admin/config/content/formats/geshifilter/languages'] = array(
'title' => 'Languages',
'description' => 'Enable the desired languages and configure their settings.',
'file' => 'geshifilter.admin.inc',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'geshifilter_admin_per_language_settings',
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_LOCAL_TASK,
);
$items['admin/config/content/formats/geshifilter/languages/enabled'] = array(
'title' => 'Enabled',
'description' => 'Show the enabled languages',
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => 3,
);
$items['admin/config/content/formats/geshifilter/languages/all'] = array(
'title' => 'All',
'description' => 'Show all the available languages',
'page arguments' => array(
'geshifilter_admin_per_language_settings',
'all',
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_LOCAL_TASK,
'weight' => 1,
);
$items['admin/config/content/formats/geshifilter/languages/disabled'] = array(
'title' => 'Disabled',
'description' => 'Show the disabled languages',
'page arguments' => array(
'geshifilter_admin_per_language_settings',
'disabled',
),
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_LOCAL_TASK,
'weight' => 6,
);
// Callback for generating CSS rules.
$items['admin/config/content/formats/geshifilter/generate_css'] = array(
'page callback' => 'geshifilter_generate_language_css_rules',
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_CALLBACK,
);
return $items;
}