You are here

function workbench_access_allow_form_alter in Workbench Access 7

Check to see if the module is configured and we can run our form alter.

TODO: Make this a generic function, which is called elsewhere.

1 call to workbench_access_allow_form_alter()
workbench_access_form_alter in ./workbench_access.module
Implements hook_form_alter().

File

./workbench_access.module, line 1476
Workbench Access module file.

Code

function workbench_access_allow_form_alter() {
  $active = workbench_access_get_active_tree();
  $ids = !empty($active) ? array_filter($active['access_scheme']['access_type_id']) : NULL;
  if (!empty($ids)) {
    return TRUE;
  }
  return FALSE;
}