function stylizer_ui::store_stylizer_info
Store the stylizer info in our settings.
The stylizer wizard stores its stuff in slightly different places, so we have to find it and move it to the right place.
2 calls to stylizer_ui::store_stylizer_info()
- stylizer_ui::edit_wizard_finish in stylizer/
plugins/ export_ui/ stylizer_ui.class.php - Wizard 'cancel' callback when using a wizard to edit an item.
- stylizer_ui::edit_wizard_next in stylizer/
plugins/ export_ui/ stylizer_ui.class.php - Wizard 'next' callback when using a wizard to edit an item.
File
-
stylizer/
plugins/ export_ui/ stylizer_ui.class.php, line 236
Class
- stylizer_ui
- UI class for Stylizer.
Code
public function store_stylizer_info(&$form_state) {
/*
foreach (array('name', 'admin_title', 'admin_description') as $key) {
if (!empty($form_state['values'][$key])) {
$form_state['item']->{$key} = $form_state['values'][$key];
}
}
*/
if ($form_state['step'] != 'import') {
$form_state['item']->settings = $form_state['settings'];
}
// Do not let the 'name' accidentally get out of sync under any circumstances.
$form_state['item']->settings['name'] = $form_state['item']->name;
}