You are here

function fasttoggle_deny_access_if in Fasttoggle 7

Get the tristate value (DENIED / UNDECIDED) matching a test outcome.

Parameters

bool $condition_outcome: The boolean outcome of a test.

Return value

int The tristate value to be used.

2 calls to fasttoggle_deny_access_if()
fasttoggle_node_edit_access in module/fasttoggle_node/fasttoggle_node.module
Check edit access to a node.
fasttoggle_node_status_access in ./fasttoggle.api.php
Access control function.

File

./fasttoggle.module, line 364
Enables fast toggling of binary or not so binary settings.

Code

function fasttoggle_deny_access_if($condition_outcome) {
  return $condition_outcome ? FASTTOGGLE_ACCESS_DENIED : FASTTOGGLE_ACCESS_UNDECIDED;
}