| 1 |
<?php
|
| 2 |
// $Id: better_formats_settings.admin.inc,v 1.6.2.3 2009/02/25 06:44:17 dragonwize Exp $
|
| 3 |
|
| 4 |
/**
|
| 5 |
* @file
|
| 6 |
* Contains FAPI and theme functions for the format settings form.
|
| 7 |
*/
|
| 8 |
|
| 9 |
/**
|
| 10 |
* FAPI form builder for admin/settings/filters/settings page.
|
| 11 |
*
|
| 12 |
* @see better_formats_menu()
|
| 13 |
*/
|
| 14 |
function better_formats_settings_admin_form() {
|
| 15 |
$form = array();
|
| 16 |
|
| 17 |
$form['display'] = array(
|
| 18 |
'#type' => 'fieldset',
|
| 19 |
'#title' => t('Display'),
|
| 20 |
);
|
| 21 |
$form['display']['better_formats_fieldset_title'] = array(
|
| 22 |
'#type' => 'textfield',
|
| 23 |
'#default_value' => variable_get('better_formats_fieldset_title', ''),
|
| 24 |
'#title' => t('Selection title'),
|
| 25 |
'#description' => t('Change the format selection title. Defaults to "Input format"'),
|
| 26 |
);
|
| 27 |
$form['display']['better_formats_long_tips_link_text'] = array(
|
| 28 |
'#type' => 'textfield',
|
| 29 |
'#default_value' => variable_get('better_formats_long_tips_link_text', ''),
|
| 30 |
'#title' => t('More format tips link text'),
|
| 31 |
'#description' => t('Change the format full tips link text. Defaults to "More information about formatting options"'),
|
| 32 |
);
|
| 33 |
|
| 34 |
|
| 35 |
$form['control'] = array(
|
| 36 |
'#type' => 'fieldset',
|
| 37 |
'#title' => t('Control'),
|
| 38 |
);
|
| 39 |
$form['control']['better_formats_per_node_type'] = array(
|
| 40 |
'#type' => 'checkbox',
|
| 41 |
'#title' => t('Control formats per node type'),
|
| 42 |
'#description' => t('Control formats allowed and default formats per node type. Global settings will be used until a content type admin page is saved.'),
|
| 43 |
'#default_value' => variable_get('better_formats_per_node_type', 0),
|
| 44 |
);
|
| 45 |
|
| 46 |
return system_settings_form($form);
|
| 47 |
}
|