You are here

function birthdays_install in Birthdays 6

Same name and namespace in other branches
  1. 5 birthdays.install \birthdays_install()

Implementation of hook_install().

File

./birthdays.install, line 11
Installation file for the Birthdays module.

Code

function birthdays_install() {
  drupal_install_schema('birthdays');

  // Still necessary!
  $weight = db_result(db_query("SELECT weight FROM {system} WHERE name = 'profile'")) - 1;
  db_query("UPDATE {system} SET weight = %d WHERE name = 'birthdays'", $weight);
}