function access_scheme_load in Access Control Kit 7
Loads an access scheme by ID.
Parameters
int $sid: The scheme ID.
bool $reset: (optional) Whether to reset the internal cache. Defaults to FALSE.
Return value
object|false An access scheme, or FALSE if the scheme is not found.
12 calls to access_scheme_load()
- AccessAPITest::testHandlerCleanup in ./
access.test - Test clean-up functions.
- AccessAPITest::testHandlerMethods in ./
access.test - Test access arbitration through our dummy handler.
- AccessGrantFunctionTest::setUp in ./
access.test - Overrides DrupalWebTestCase::setUp().
- AccessGrantInterfaceTest::testGrantDelete in ./
access.test - Delete an access grant via the user interface.
- AccessGrantInterfaceTest::testGrantInterface in ./
access.test - Create and edit an access grant via the user interface.
1 string reference to 'access_scheme_load'
- access_hook_info in ./
access.module - Implements hook_hook_info().
File
- ./
access.module, line 350 - The access control kit module.
Code
function access_scheme_load($sid, $reset = FALSE) {
$schemes = access_scheme_load_multiple(array(
$sid,
), $reset);
return reset($schemes);
}