You are here

function _pagerer_save_preset in Pagerer 7

Save a pagerer preset configuration.

Parameters

string $preset_name: the name of the preset to be retrieved

array $preset: the preset configuration array

4 calls to _pagerer_save_preset()
pagerer_pane_form_submit in ./pagerer.admin.inc
Pane level settings form - submission.
pagerer_pane_theme_reset_form_submit in ./pagerer.admin.inc
Pane level settings reset form - submission.
pagerer_preset_add_form_submit in ./pagerer.admin.inc
Preset add form - submission.
pagerer_preset_form_submit in ./pagerer.admin.inc
Preset edit form - submission.

File

./pagerer.module, line 2038
Pagerer

Code

function _pagerer_save_preset($preset_name, $preset) {
  $preset = array_intersect_key($preset, array(
    'left_pane' => NULL,
    'center_pane' => NULL,
    'right_pane' => NULL,
  ));
  variable_set('pagerer.preset.' . $preset_name, $preset);
}