function config_perms_flush_caches in Custom Permissions 7.2
Same name and namespace in other branches
- 6.2 config_perms.module \config_perms_flush_caches()
Implements hook_flush_caches().
The cache table is already cleared by Drupal flush caches, so we don't need to return that or do it ourselves, but if CTools is enabled be sure to reset that cache on a cache clear.
File
- ./
config_perms.module, line 77 - Allows additional permissions to be created and managed through a administration form
Code
function config_perms_flush_caches() {
if (module_exists('ctools')) {
// Clear the Ctools export API cache.
ctools_include('export');
ctools_export_load_object_reset('config_perms');
}
return array();
}