function views_skinr_submit_handler_view in Skinr 6.2
Same name and namespace in other branches
- 6 modules/views.skinr.inc \views_skinr_submit_handler_view()
Related topics
1 string reference to 'views_skinr_submit_handler_view'
- views_skinr_config in modules/
views.skinr.inc - Implementation of hook_skinr_config().
File
- modules/
views.skinr.inc, line 264 - Provide skinr handling for node.module
Code
function views_skinr_submit_handler_view(&$form, $form_state, $module, $form_settings) {
switch ($form_state['values']['op']) {
case t('Save'):
// Fetch skinr data for this view from cache
views_include('cache');
if ($skinrs = views_object_cache_get('skinr', $form_state['view']->name, TRUE)) {
foreach ($skinrs as $theme_name => $theme) {
foreach ($theme as $sid => $skins) {
$skinr = new stdClass();
$skinr->theme = $theme_name;
$skinr->module = $module;
$skinr->sid = $sid;
$skinr->skins = $skins;
skinr_set($skinr);
}
}
views_object_cache_clear('skinr', $form_state['view']->name);
}
break;
case t('Cancel'):
// Remove our data from views cache
views_include('cache');
views_object_cache_clear('skinr', $form_state['view']->name);
break;
}
}