You are here

function sharethis_configuration_form_submit in ShareThis 7.2

Form submission handler for sharethis_configuration_form().

1 string reference to 'sharethis_configuration_form_submit'
sharethis_configuration_form in ./sharethis.admin.inc
This is the main configuration form for the admin page.

File

./sharethis.admin.inc, line 384
Functionality for Share This administration.

Code

function sharethis_configuration_form_submit($form, &$form_state) {

  // If the location is changing to/from 'content', clear the Field Info cache.
  $current_location = variable_get('sharethis_location', array(
    'content' => 'content',
  ));
  $new_location = $form_state['values']['sharethis_location'];
  if (($current_location == 'content' || $new_location == 'content') && $current_location != $new_location) {
    field_info_cache_clear();
  }
}