You are here

function getid3_install in getID3() 7

Same name and namespace in other branches
  1. 8 getid3.install \getid3_install()
  2. 5 getid3.install \getid3_install()
  3. 6 getid3.install \getid3_install()
  4. 7.2 getid3.install \getid3_install()

Implements hook_install().

File

./getid3.install, line 50
Install, update and uninstall functions for the getid3 module.

Code

function getid3_install() {
  $status = array();

  // Set module weight for the getID3 module.
  $status[] = db_query("UPDATE {system} SET weight = -10 WHERE name = 'getid3'");

  // If there is one FALSE value in the status array, there was an error.
  if (array_search(FALSE, $status) !== FALSE) {
    drupal_set_message(st('Setting the module weight of getID3 failed.'), 'error');
  }
}