You are here

function _footnotes_field_admin_form_submit in Footnotes 7.2

Same name and namespace in other branches
  1. 7.3 footnotes_field/includes/footnotes_field.admin.inc \_footnotes_field_admin_form_submit()

Submit handler.

Parameters

array $form: Form array.

array $form_state: Form_state array.

File

footnotes_field/includes/footnotes_field.admin.inc, line 63
Footnotes field admin file.

Code

function _footnotes_field_admin_form_submit($form, &$form_state) {
  $content_types = NULL;
  if (isset($form_state['values']['content_types'])) {
    $content_types = $form_state['values']['content_types'];
  }
  $expose_block = $form_state['values']['expose_block'];
  variable_set('footnotes_field_settings', array(
    'content_types' => $content_types,
    'expose_block' => $expose_block,
  ));
  if (module_exists('ds')) {
    drupal_flush_all_caches();
  }
  drupal_set_message(t('Your settings have been saved.'));
}