5 * Contains FAPI and theme functions for the format settings form.
9 * FAPI form builder for admin/settings/filters/settings page.
11 * @see better_formats_menu()
13 function better_formats_settings_admin_form() {
16 $form['display'] = array(
17 '#type' => 'fieldset',
18 '#title' => t('Display'),
20 $form['display']['better_formats_fieldset_title'] = array(
21 '#type' => 'textfield',
22 '#default_value' => variable_get('better_formats_fieldset_title', ''),
23 '#title' => t('Selection title'),
24 '#description' => t('Change the format selection title. Defaults to "Input format"'),
26 $form['display']['better_formats_long_tips_link_text'] = array(
27 '#type' => 'textfield',
28 '#default_value' => variable_get('better_formats_long_tips_link_text', ''),
29 '#title' => t('More format tips link text'),
30 '#description' => t('Change the format full tips link text. Defaults to "More information about formatting options"'),
34 $form['control'] = array(
35 '#type' => 'fieldset',
36 '#title' => t('Control'),
38 $form['control']['better_formats_per_node_type'] = array(
39 '#type' => 'checkbox',
40 '#title' => t('Control formats per node type'),
41 '#description' => t('Control formats allowed and default formats per node type. Global settings will be used until a content type admin page is saved.'),
42 '#default_value' => variable_get('better_formats_per_node_type', 0),
45 return system_settings_form($form);