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

Code

function hook_colorbox_form_access($form_id) {
    $access = FALSE;
    if ($form_id == 'forward_form') {
        return user_access('access forward');
    }
    return $access;
}