function activity_install in Activity 6.2
Same name and namespace in other branches
- 5.4 activity.install \activity_install()
- 5 activity.install \activity_install()
- 5.2 activity.install \activity_install()
- 5.3 activity.install \activity_install()
- 6 activity.install \activity_install()
- 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');
}
}