function geshinode_settings in GeSHi Filter for syntax highlighting 6
Same name and namespace in other branches
- 5.2 geshinode.module \geshinode_settings()
Callback for geshinode settings form
1 string reference to 'geshinode_settings'
- geshinode_menu in ./
geshinode.module - Implementation of hook_menu()
File
- ./
geshinode.module, line 162 - Implementation of a GeSHi node.
Code
function geshinode_settings() {
require_once drupal_get_path('module', 'geshifilter') . '/geshifilter.inc';
$form = array();
$form['geshinode_line_numbering'] = array(
'#type' => 'select',
'#title' => t('Line numbering'),
'#default_value' => variable_get('geshinode_line_numbering', GESHIFILTER_LINE_NUMBERS_DEFAULT_NONE),
'#options' => array(
GESHIFILTER_LINE_NUMBERS_DEFAULT_NONE => t('no line numbers'),
GESHIFILTER_LINE_NUMBERS_DEFAULT_NORMAL => t('normal line numbers'),
GESHIFILTER_LINE_NUMBERS_DEFAULT_FANCY5 => t('fancy line numbers (every @n lines)', array(
'@n' => GESHIFILTER_LINE_NUMBERS_DEFAULT_FANCY5,
)),
GESHIFILTER_LINE_NUMBERS_DEFAULT_FANCY10 => t('fancy line numbers (every @n lines)', array(
'@n' => GESHIFILTER_LINE_NUMBERS_DEFAULT_FANCY10,
)),
GESHIFILTER_LINE_NUMBERS_DEFAULT_FANCY20 => t('fancy line numbers (every @n lines)', array(
'@n' => GESHIFILTER_LINE_NUMBERS_DEFAULT_FANCY20,
)),
),
);
$form['geshinode_default_language'] = array(
'#type' => 'select',
'#title' => t('Default language'),
'#options' => _geshifilter_get_enabled_languages(),
'#default_value' => variable_get('geshinode_default_language', 'php'),
);
return system_settings_form($form);
}