better_formats.admin_settings.inc in Better Formats 7
Contains FAPI and theme functions for the format settings form.
File
better_formats.admin_settings.incView source
<?php
/**
* @file
* Contains FAPI and theme functions for the format settings form.
*/
/**
* FAPI form builder for admin/settings/filters/settings page.
*
* @see better_formats_menu()
*/
function better_formats_admin_settings_form($form, &$form_state) {
$form = array();
$form['control'] = array(
'#type' => 'fieldset',
'#title' => t('Control'),
);
$form['control']['better_formats_per_field_core'] = array(
'#type' => 'checkbox',
'#title' => t('Use field default'),
'#description' => t('Use the core field module default value to set the default format. This will force the default format even when the default field value is empty. To set a default format you must re-edit a text field after saving it with the "Filtered text" option turned on.'),
'#default_value' => variable_get('better_formats_per_field_core', 0),
);
/*
$form['control']['better_formats_per_node_type'] = array(
'#type' => 'checkbox',
'#title' => t('Control formats per node type'),
'#description' => t('Control formats allowed and default formats per node type. Global settings will be used until a content type admin page is saved.'),
'#default_value' => variable_get('better_formats_per_node_type', 0),
);
*/
return system_settings_form($form);
}
Functions
Name | Description |
---|---|
better_formats_admin_settings_form | FAPI form builder for admin/settings/filters/settings page. |