function flexiform_ctools_access_get in Flexiform 7
Implements hook_ctools_access_get.
File
- ./
flexiform.module, line 748 - Module for the Flexiform system.
Code
function flexiform_ctools_access_get($argument) {
$flexiform = flexiform_load($argument);
try {
$contexts = $flexiform
->getAccessController()
->prepareContexts();
} catch (Exception $e) {
return array();
}
return array(
$flexiform
->getAccessController()
->getCtoolsSettings(),
$contexts,
);
}