You are here

function trash_flag_node_grants in Trash Flag 7

Implements hook_node_grants().

File

./trash_flag.module, line 339

Code

function trash_flag_node_grants($account, $op) {
  $grants = array();
  if (user_access("view trash content", $account)) {
    $grants['trash_flag'] = array(
      1,
    );
  }
  return $grants;
}