You are here

function activity_bad_trigger_weight in Activity 6.2

Same name and namespace in other branches
  1. 7 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 210

Code

function activity_bad_trigger_weight() {

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