function tft_tft_item_operation_links_access in Taxonomy File Tree 7.2
Implements hook_tft_item_operation_links_access()
Related topics
File
- ./
tft.module, line 667 - Hook implementations and module logic for TFT.
Code
function tft_tft_item_operation_links_access($op, $type, $id, $parent_tid = NULL) {
if ($type == 'folder') {
if ($op == 'edit') {
return user_access(TFT_PERM__ADD_TERMS);
}
elseif ($op == 'delete') {
return user_access(TFT_PERM__DELETE_TERMS);
}
}
}