fb_example.install in Drupal for Facebook 6.3
Same filename and directory in other branches
Install file for fb_example.module. Set the weight of our module to be after og.
File
contrib/fb_example.installView 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
Name | Description |
---|---|
fb_example_install | Implements hook_install(). |
fb_example_update_1 | Implements hook_update_N(). |