You are here

function fb_example_install in Drupal for Facebook 7.3

Same name and namespace in other branches
  1. 6.3 contrib/fb_example.install \fb_example_install()

Implements hook_install().

Set weight so that fb_example comes after fb_user.

File

contrib/fb_example.install, line 14
Install file for fb_example.module. Set the weight of our module to be after og.

Code

function fb_example_install() {

  // So we fall after og_vocab and og.
  db_update('system')
    ->fields(array(
    'weight' => 3,
  ))
    ->condition('name', 'fb_example')
    ->execute();
}