You are here

function activity_install in Activity 6.2

Same name and namespace in other branches
  1. 5.4 activity.install \activity_install()
  2. 5 activity.install \activity_install()
  3. 5.2 activity.install \activity_install()
  4. 5.3 activity.install \activity_install()
  5. 6 activity.install \activity_install()
  6. 7 activity.install \activity_install()

File

./activity.install, line 3

Code

function activity_install() {
  drupal_install_schema('activity');

  // Set Trigger's weight to 2 so that it will fire AFTER pathauto. This makes
  // pathauto alias' work.
  if (activity_bad_trigger_weight()) {
    drupal_set_message(t('In order for proper Pathauto behavior with Activity module, the Trigger module\'s weight needs to be fixed up. !clickhere', array(
      '!clickhere' => l(t('Click here to fix Trigger\'s weight'), 'admin/activity/weight', array(
        'query' => drupal_get_destination(),
      )),
    )), 'error');
  }
}