You are here

fb_example.install in Drupal for Facebook 6.3

Same filename and directory in other branches
  1. 7.3 contrib/fb_example.install

Install file for fb_example.module. Set the weight of our module to be after og.

File

contrib/fb_example.install
View source
<?php

/**
 * @file
 * Install file for fb_example.module.
 * Set the weight of our module to be after og.
 */

/**
 * Implements hook_install().
 *
 * Set weight so that fb_example comes after fb_user.
 */
function fb_example_install() {

  // So we fall after og_vocab and og.
  db_query("UPDATE {system} SET weight = 3 WHERE name='fb_example'");
}

/**
 * Implements hook_update_N().
 *
 * Set weight so that fb_example comes after fb_user.
 */
function fb_example_update_1() {
  $ret = array();
  $ret[] = update_sql("UPDATE {system} SET weight = 3 WHERE name='fb_example'");
  return $ret;
}

Functions

Namesort descending Description
fb_example_install Implements hook_install().
fb_example_update_1 Implements hook_update_N().