function fasttoggle_allow_access_if in Fasttoggle 7
Get the tristate value (ALLOWED / UNDECIDED) matching a test outcome.
Parameters
bool $condition_outcome: The boolean outcome of a test.
Return value
int The tristate value to be used.
8 calls to fasttoggle_allow_access_if()
- fasttoggle_comment_access_status in module/
fasttoggle_comment/ fasttoggle_comment.module - Fasttoggle comment access check function.
- fasttoggle_modr8_moder8_access in module/
fasttoggle_modr8/ fasttoggle_modr8.module - Check access to moder8 fasttoggle link.
- fasttoggle_node_promote_access in module/
fasttoggle_node/ fasttoggle_node.module - Check promote access to a node.
- fasttoggle_node_status_access in ./
fasttoggle.api.php - Access control function.
- fasttoggle_node_status_access in module/
fasttoggle_node/ fasttoggle_node.module - Check access to publish/unpublish a node.
File
- ./
fasttoggle.module, line 377 - Enables fast toggling of binary or not so binary settings.
Code
function fasttoggle_allow_access_if($condition_outcome) {
return $condition_outcome ? FASTTOGGLE_ACCESS_ALLOWED : FASTTOGGLE_ACCESS_UNDECIDED;
}