function _taxonomy_access_list_state in Taxonomy Access Control 7
Flag to disable list grant filtering (e.g., on node edit forms).
Parameters
bool $set_flag: (optional) When passed, sets the the flag. Pass either TRUE or FALSE. Defaults to NULL.
Related topics
3 calls to _taxonomy_access_list_state()
- taxonomy_access_disable_list in ./
taxonomy_access.module - Wrapper for taxonomy_access_list_state() to disable list grant filtering.
- taxonomy_access_enable_list in ./
taxonomy_access.module - Wrapper for taxonomy_access_list_state() to enable list grant filtering.
- taxonomy_access_list_enabled in ./
taxonomy_access.module - Wrapper for taxonomy_access_list_state() to check list grant filtering.
File
- ./
taxonomy_access.module, line 1435 - Allows administrators to specify access control for taxonomy categories.
Code
function _taxonomy_access_list_state($set_flag = NULL) {
static $flag = TRUE;
// If no flag was passed, return the current state of the flag.
if (is_null($set_flag)) {
return $flag;
}
// If we were passed anything but null, set the flag.
$flag = $set_flag ? TRUE : FALSE;
}