You are here

function new_relic_rpm_install in New Relic 7

Same name and namespace in other branches
  1. 8 new_relic_rpm.install \new_relic_rpm_install()
  2. 2.x new_relic_rpm.install \new_relic_rpm_install()
  3. 2.0.x new_relic_rpm.install \new_relic_rpm_install()

Implements hook_install().

File

./new_relic_rpm.install, line 37
Install and uninstall functions for the new_relic_rpm module.

Code

function new_relic_rpm_install() {

  // Set New Relic RPM module's weight to very low so we can trigger job state
  // changes early. This can be important in cases like hook_cron().
  db_update('system')
    ->fields(array(
    'weight' => -20,
  ))
    ->condition('name', 'new_relic_rpm')
    ->execute();
}