function trash_flag_trigger in Trash Flag 7
Helper for flag and unflag hooks. Trigger actions if any are available.
2 calls to trash_flag_trigger()
- trash_flag_flag_flag in ./
trash_flag.module - Implements hook_flag_flag().
- trash_flag_flag_unflag in ./
trash_flag.module - Implements hook_flag_unflag().
File
- ./
trash_flag.module, line 27
Code
function trash_flag_trigger($action, $flag, $content_id, $account) {
if ($flag->name == 'trash') {
node_access_acquire_grants(node_load($content_id));
}
}