You are here

function fences_form_add_config in Fences 7.2

Adds fences' configuration widgets to a form.

2 calls to fences_form_add_config()
_fences_form_ctools_entity_field_content_type_formatter_options_alter in ./fences.admin.inc
Implements hook_form_FORM_ID_alter().
_fences_form_field_ui_field_edit_form_alter in ./fences.admin.inc
Implements hook_form_FORM_ID_alter().

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.'),
  );
}