You are here

function activity_count_modules in Activity 6.2

FAPI submit callback to count the number of enabled Activity access modules.

1 string reference to 'activity_count_modules'
activity_form_system_modules_alter in ./activity.module
Implementation of hook_form-$form-id_alter().

File

./activity.module, line 905
Primarily Drupal hooks and global API functions to manipulate activity.

Code

function activity_count_modules($form, &$form_state) {
  if (count(activity_get_module_info(NULL, TRUE)) < $form['#activity_count']) {
    drupal_set_message(t('Activity Access realms may need to rebuilt. !click', array(
      '!click' => l(t('Click here to do this now'), 'admin/settings/activity', array(
        'fragment' => 'activity-access-fieldset',
      )),
    )), 'error');
  }
}