function oa_appearance_edit_form_submit in Open Atrium Appearance 7.2
Form submission handler for oa_appearance_edit_form().
File
- ./
oa_appearance.module, line 275 - Provides integration between Open Atrium and Colorizer module
Code
function oa_appearance_edit_form_submit($form, &$form_state) {
module_load_include('admin.inc', 'colorizer');
colorizer_admin_form_submit($form, $form_state);
// Clear the colorizer instance static cache.
drupal_static_reset('oa_appearance_get_space_colorizer_instance');
// Clear our colorizer instance cache.
$nid = $form['#entity_id'];
if (module_exists("oa_subspaces")) {
// Clear the colorizer instance cache for all child spaces as well.
cache_clear_all("oa_appearance:colorizer", "cache", TRUE);
}
else {
cache_clear_all("oa_appearance:colorizer:{$nid}", "cache");
}
}