You are here

function heartbeat_check_access_types in Heartbeat 6.3

Same name and namespace in other branches
  1. 6.4 heartbeat.module \heartbeat_check_access_types()

Check if there no new heartbeat access types available

1 call to heartbeat_check_access_types()
heartbeat_install in ./heartbeat.install
Implementation of hook_install().

File

./heartbeat.module, line 579

Code

function heartbeat_check_access_types() {
  $types = module_invoke_all('heartbeat_register_access_types');
  if (!empty($types)) {
    foreach ($types as $key => $type) {
      require_once drupal_get_path('module', $type['module']) . '/' . $type['path'];
      if (!class_exists($type['class'])) {
        watchdog('heartbeat', t('No class found for') . $type['class'], array(), WATCHDOG_ERROR);
        unset($types[$key]);
      }
    }
  }
  variable_set('heartbeat_access_types', $types);
}