You are here

function panels_common_settings_submit in Panels 6.2

Same name and namespace in other branches
  1. 5.2 includes/common.inc \panels_common_settings_submit()
  2. 6.3 includes/common.inc \panels_common_settings_submit()
  3. 7.3 includes/common.inc \panels_common_settings_submit()

Submit hook for panels_common_settings

File

includes/common.inc, line 313
Functions used by more than one panels client module.

Code

function panels_common_settings_submit($form, &$form_state) {
  $module_name = $form_state['values']['module_name'];
  variable_set($module_name . '_default', $form_state['values']['panels_common_default']);
  if (!$form_state['values']['skip']) {

    // merge the broken apart array neatly back together
    variable_set($module_name . '_allowed_types', call_user_func_array('array_merge', $form_state['values']['content_types']));
  }
  drupal_set_message(t('Your changes have been saved.'));
}