=== added file 'geshifilter.info'
--- geshifilter.info 1970-01-01 00:00:00 +0000
+++ geshifilter.info 2007-01-08 05:41:48 +0000
@@ -0,0 +1,3 @@
+; $Id$
+name = GeSHiFilter
+description = Provides tags for syntax-highlighting code automatically.
=== modified file 'geshifilter.module'
--- geshifilter.module 2007-01-08 04:22:24 +0000
+++ geshifilter.module 2007-01-08 05:41:48 +0000
@@ -1,9 +1,5 @@
'admin/settings/geshifilter',
+ 'title' => t('GeSHiFilter'),
+ 'description' => t('Manage GeSHiFilter.'),
+ 'access' => user_access('administer site configuration'),
+ 'callback' => 'drupal_get_form',
+ 'callback arguments' => array('geshifilter_admin_settings'));
+ }
+ return $items;
+}
+
+/**
* Admin page linked from menu
*/
-function geshifilter_settings() {
+function geshifilter_admin_settings() {
$form = array();
@@ -180,6 +198,11 @@
'#default_value' => variable_get('geshifilter_start_param', FALSE),
'#description' => t('Allow users to make the line numbers start at any number using start=number param. This feature will break XHTML strict compliancy (Geshi documentation » Choosing a Start Number).',
array('%link' => 'http://qbnz.com/highlighter/geshi-doc.html#starting-line-numbers')));
+ $form['geshi']['geshifilter_manual_css'] = array(
+ '#type' => 'checkbox',
+ '#title' => t('Allow manual CSS'),
+ '#default_value' => variable_get('geshifilter_manual_css', FALSE),
+ '#description' => t('Allow users to manually specify CSS for the formatted code.'));
$form['inline'] = array(
'#type' => 'fieldset',
@@ -248,13 +271,13 @@
'#default_value' => variable_get('geshifilter_debug', FALSE),
'#description' => t('Enable the verbose mode for debugging.'));
- return $form;
+ return system_settings_form($form);
}
/*
* Validate the settings form
*/
-function geshifilter_settings_form_validate($form_id, $form_values) {
+function geshifilter_admin_settings_validate($form_id, $form_values) {
$form_values['geshifilter_geshi_dir'] = rtrim($form_values['geshifilter_geshi_dir'], '/\\');
$form_values['geshifilter_lang_dir'] = rtrim($form_values['geshifilter_lang_dir'], '/\\');