You are here

function activity_bad_trigger_weight in Activity 7

Same name and namespace in other branches
  1. 6.2 activity.install \activity_bad_trigger_weight()

Check to see if we need to fix the Trigger weight.

2 calls to activity_bad_trigger_weight()
activity_install in ./activity.install
activity_requirements in ./activity.install
Implementation of hook_requirements().

File

./activity.install, line 221

Code

function activity_bad_trigger_weight() {

  // Verify Triggers weight.
  $pathauto_weight = db_query("SELECT weight FROM {system} WHERE name = 'pathauto'")
    ->fetchField();
  if ($pathauto_weight !== FALSE) {
    $trigger_weight = db_query("SELECT weight FROM {system} WHERE name = 'trigger'")
      ->fetchField();
    return $trigger_weight <= $pathauto_weight;
  }
  return FALSE;
}