You are here

fb_example.install in Drupal for Facebook 7.3

Same filename and directory in other branches
  1. 6.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_update('system')
    ->fields(array(
    'weight' => 3,
  ))
    ->condition('name', 'fb_example')
    ->execute();
}

/**
 * Implements hook_update_N().
 *
 * Set weight so that fb_example comes after fb_user.
 */
function fb_example_update_7001() {
  db_update('system')
    ->fields(array(
    'weight' => 3,
  ))
    ->condition('name', 'fb_example')
    ->execute();
  return $ret;
}

Functions

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