function oa_appearance_node_update in Open Atrium Appearance 7.2
Implements hook_node_update().
File
- ./
oa_appearance.module, line 311 - Provides integration between Open Atrium and Colorizer module
Code
function oa_appearance_node_update($node) {
if ($node->type == 'oa_space') {
// Clear our banner settings cache.
if (module_exists("oa_subspaces")) {
// Clear the banner settings cache for all child spaces as well.
// Don't suffer the performance of looping through all children, just clear the whole cache
cache_clear_all("oa_appearance:banner", "cache", TRUE);
}
else {
cache_clear_all("oa_appearance:banner:{$node->nid}:", "cache", TRUE);
}
}
}