You are here

getid3.install in getID3() 5

Same filename and directory in other branches
  1. 8 getid3.install
  2. 6 getid3.install
  3. 7.2 getid3.install
  4. 7 getid3.install

File

getid3.install
View source
<?php

/**
 * Implementation of hook_enable()
 */
function getid3_enable() {

  // Display a message if it fails to load getID3().
  getid3_load();
}

/**
 * Implementation of hook_install().
 */
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(t('Setting the module weight of getID3 failed.'), 'error');
  }
}

/**
 * Implementation of hook_uninstall()
 */
function getid3_uninstall() {
  db_query("DELETE FROM {variable} WHERE name LIKE 'getid3_%'");
  cache_clear_all('variables', 'cache');
}

Functions

Namesort descending Description
getid3_enable Implementation of hook_enable()
getid3_install Implementation of hook_install().
getid3_uninstall Implementation of hook_uninstall()