You are here

fb.install in Drupal for Facebook 5

File

fb.install
View source
<?php

function _fb_install_set_weight() {
  db_query("UPDATE {system} SET weight=-2 WHERE name='fb'");
}
function fb_install() {
  _fb_install_set_weight();
}
function fb_update_1() {
  _fb_install_set_weight();
}

/**
 * The callback URL has changed and this requires manual updates to App settings.
 */
function fb_update_2() {
  $message = t('Warning!  The Drupal for Facebook modules have changed.  Manual intervention is required!  See !url1 or !url2.', array(
    '!url1' => l('http://apps.facebook.com/drupalforfacebook/node/1055', 'http://apps.facebook.com/drupalforfacebook/node/1055'),
    '!url2' => l('http://drupalforfacebook.org/node/1055', 'http://drupalforfacebook.org/node/1055'),
  ));
  drupal_set_message($message);
  watchdog('fb', $message);
}

Functions

Namesort descending Description
fb_install
fb_update_1
fb_update_2 The callback URL has changed and this requires manual updates to App settings.
_fb_install_set_weight