function collapse_text_settings in Collapse Text 6.2
Implementation of hook_filter($op='settings').
1 call to collapse_text_settings()
- collapse_text_filter in ./
collapse_text.module - Implementation of hook_filter().
File
- ./
collapse_text.module, line 78 - collapse_text is an input filter that allows text to be collapsible
Code
function collapse_text_settings($format) {
$form = array();
$form['collapse_text'] = array(
'#type' => 'fieldset',
'#title' => t('Collapse text filter'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$form['collapse_text']["collapse_text_default_title_{$format}"] = array(
'#type' => 'textfield',
'#title' => t('Default title'),
'#description' => t('If no title is supplied for a section, use this as the default. This may not be empty. The original default title is "@default_title".', array(
'@default_title' => COLLAPSE_TEXT_DEFAULT_TITLE,
)),
'#default_value' => variable_get("collapse_text_default_title_{$format}", COLLAPSE_TEXT_DEFAULT_TITLE),
'#required' => TRUE,
);
$form['collapse_text']["collapse_text_use_form_{$format}"] = array(
'#type' => 'checkbox',
'#title' => t('Surround text with an empty form tag'),
'#description' => t('Collapse text works by generating <fieldset> tags. To validate as proper HTML, these need to be within a <form> tag. This option allows you to prevent the generation of the surrounding form tag. You probably do not want to change this.'),
'#default_value' => variable_get("collapse_text_use_form_{$format}", 1),
);
return $form;
}