function fences_form_add_config in Fences 7.2
Adds fences' configuration widgets to a form.
2 calls to fences_form_add_config()
File
- ./
fences.admin.inc, line 227 - Functions only needed on configuration pages.
Code
function fences_form_add_config(&$form, $suggestion) {
// Make the default markup selection match the Fences default markup setting.
$default_markup = variable_get('fences_default_markup', 0) ? 'div' : 'div_div_div';
$form['fences_wrapper'] = array(
'#type' => 'select',
'#title' => t('Wrapper markup'),
'#default_value' => $suggestion ? $suggestion : $default_markup,
'#options' => fences_get_fences_options('field'),
'#description' => t('Choose the HTML to use to wrap the field.'),
);
}