function hook_colorbox_form_access in Colorbox 7
Same name and namespace in other branches
- 6 colorbox.api.php \hook_colorbox_form_access()
Allow other modules to control access to forms opening in Colorbox.
Implements hook_colorbox_form_access().
Parameters
$form_id: The unique string identifying the current form.
1 invocation of hook_colorbox_form_access()
- _colorbox_form_page_access in ./
colorbox.module - Colorbox menu access check.
File
- ./
colorbox.api.php, line 40 - API documentation for the colorbox module.
Code
function hook_colorbox_form_access($form_id) {
$access = FALSE;
if ($form_id == 'forward_form') {
return user_access('access forward');
}
return $access;
}