function flexiform_builder_admin_access in Flexiform 7
Access callback for form-entities and form-fields tabs that are only available for some builders.
Parameters
Flexiform $flexiform: The flexiform to check.
string $component: The component to check access for, normally 'elements' or 'entities'
1 string reference to 'flexiform_builder_admin_access'
- FlexiformUIController::hook_menu in ./
flexiform.admin.inc - Overrides hook_menu() defaults.
File
- ./
flexiform.module, line 550 - Module for the Flexiform system.
Code
function flexiform_builder_admin_access($flexiform, $component) {
return user_access('administer flexiforms') && $flexiform
->getBuilder()
->supportsComponent($component);
}