function _oa_buttons_perm_name in Open Atrium Core 7.2
Helper to return a permission for oa_button for given vocabulary and term
Parameters
$machine_name:
$tid:
Return value
string
1 call to _oa_buttons_perm_name()
- oa_core_get_taxonomy_term_access in includes/
oa_core.access.inc - Helper function to determine access to create nodes of certain taxonomy terms
File
- modules/
oa_buttons/ oa_buttons.module, line 216
Code
function _oa_buttons_perm_name($machine_name, $tid) {
return 'use oa button ' . $machine_name . ' for ' . $tid . ' term';
}