You are here

function og_notifications_requirements in Organic groups 5.8

Same name and namespace in other branches
  1. 5.3 og_notifications/og_notifications.install \og_notifications_requirements()

Implementation of hook_requirements().

File

og_notifications/og_notifications.install, line 52

Code

function og_notifications_requirements($phase) {
  if ($phase == 'install') {
    $schema = db_result(db_query("SELECT schema_version FROM {system} WHERE type = 'module' AND name = 'og'"));
    if ($schema < 5703) {
      $t = get_t();
      return array(
        'og_notifications' => array(
          'title' => $t('OG notifications'),
          'value' => $t('Please ensure that your installation of organic groups is up to date before enabling OG notifications.'),
          'severity' => REQUIREMENT_ERROR,
        ),
      );
    }
  }
}