function activity_requirements in Activity 7
Same name and namespace in other branches
- 6.2 activity.install \activity_requirements()
 
Implementation of hook_requirements().
File
- ./
activity.install, line 195  
Code
function activity_requirements($phase) {
  $requirements = array();
  $t = get_t();
  if ($phase == 'runtime') {
    if (activity_bad_trigger_weight()) {
      $requirements['activity_trigger_weight'] = array(
        'title' => $t('Activity Trigger Weight'),
        'description' => $t('Activity2 requires Trigger\'s weight be greater than Pathauto\'s in order to produce proper aliased paths. !clickhere to fix that', array(
          '!clickhere' => l(t('Click here'), 'admin/activity/weight', array(
            'query' => drupal_get_destination(),
          )),
        )),
        'severity' => REQUIREMENT_WARNING,
      );
    }
  }
  return $requirements;
}