function tft_og_archive_tft_term_access in Taxonomy File Tree 7.2
Implements hook_tft_term_access().
File
- modules/
tft_og_archive/ tft_og_archive.module, line 29 - Hook implementations and module logic.
Code
function tft_og_archive_tft_term_access($tid, $account = NULL, $op = 'view') {
if (!isset($account)) {
global $user;
$account = $user;
}
if ($op === 'archive') {
if ($og_nid = tft_og_get_og_nid($tid)) {
return og_user_access('node', $og_nid, TFT_ARCHIVE_PERM__ARCHIVE_TERMS, $account);
}
}
}