You are here

function oa_core_trigger_flag in Open Atrium Core 7.2

Helper function for flag and unflag hooks.

2 calls to oa_core_trigger_flag()
oa_core_flag_flag in includes/oa_core.cache.inc
Implements hook_flag_flag().
oa_core_flag_unflag in includes/oa_core.cache.inc
Implements hook_flag_unflag().

File

includes/oa_core.cache.inc, line 125
Code for OpenAtrium caching helpers

Code

function oa_core_trigger_flag($op, $flag, $content_id, $account) {
  if ($flag->name == 'trash') {
    if (empty($account)) {
      global $user;
      $account = $user;
    }
    oa_core_clear_group_cache(NULL, $account->uid, TRUE);
  }
}