Fixed #1253324 by cschaub: Pass rids as integers to db.
[project/better_formats.git] / better_formats_settings.admin.inc
1 <?php
2
3 /**
4 * @file
5 * Contains FAPI and theme functions for the format settings form.
6 */
7
8 /**
9 * FAPI form builder for admin/settings/filters/settings page.
10 *
11 * @see better_formats_menu()
12 */
13 function better_formats_settings_admin_form() {
14 $form = array();
15
16 $form['display'] = array(
17 '#type' => 'fieldset',
18 '#title' => t('Display'),
19 );
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"'),
25 );
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"'),
31 );
32
33
34 $form['control'] = array(
35 '#type' => 'fieldset',
36 '#title' => t('Control'),
37 );
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),
43 );
44
45 return system_settings_form($form);
46 }