You are here

function panels_common_settings_submit in Panels 5.2

Same name and namespace in other branches
  1. 6.3 includes/common.inc \panels_common_settings_submit()
  2. 6.2 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 308
Functions used by more than one panels client module.

Code

function panels_common_settings_submit($form_id, $form_values) {
  $module_name = $form_values['module_name'];
  variable_set($module_name . '_default', $form_values['panels_common_default']);
  if (!$form_values['skip']) {

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