You are here

function closeblock_system_theme_settings in Close Block 7

Same name and namespace in other branches
  1. 6 includes/closeblock.form.inc \closeblock_system_theme_settings()

Add Closeblock settings to theme settings form.

1 call to closeblock_system_theme_settings()
closeblock_form_system_theme_settings_alter in ./closeblock.module
Implements hook_form_FORM_ID_alter().

File

includes/closeblock.form.inc, line 11
Closeblock settings form functions.

Code

function closeblock_system_theme_settings(&$form, $form_state) {
  $settings = variable_get($form['var']['#value'], array());
  $settings = array_merge(closeblock_default_settings(), $settings, array());
  $form['closeblock'] = array(
    '#type' => 'fieldset',
    '#title' => t('Closeblock selectors'),
    '#weight' => 0,
    '#attributes' => array(
      'id' => 'closeblock_form',
    ),
  );
  $form['closeblock'] += closeblock_settings_elements($settings);
}