You are here

function simple_fb_connect_update_8301 in Simple FB Connect 8.3

Set Graph API version to v2.6.

The Graph API version became a configurable parameter in 8.x-3.0-rc3. Versions prior to 8.x-3.0-rc3 used hard coded Graph API version 'v2.6'. This update populates the value 'v2.6' to module settings so that older installations will continue to use the same Graph API version than before.

File

./simple_fb_connect.install, line 106
Install, update, and uninstall functions for the Simple FB Connect module.

Code

function simple_fb_connect_update_8301(&$sandbox) {
  $config_factory = \Drupal::configFactory();
  $config = $config_factory
    ->getEditable('simple_fb_connect.settings');
  $config
    ->set('api_version', 'v2.6');
  $config
    ->save(TRUE);
}