You are here

media_entity_facebook.post_update.php in Media entity facebook 3.x

Post update functions for Media entity Facebook module.

File

media_entity_facebook.post_update.php
View source
<?php

/**
 * @file
 * Post update functions for Media entity Facebook module.
 */

/**
 * Set defaults for new config settings.
 */
function media_entity_facebook_post_update_set_default_config() {
  $config_factory = \Drupal::configFactory();
  $config_factory
    ->getEditable('media_entity_facebook.settings')
    ->set('facebook_app_id', '')
    ->set('facebook_app_secret', '')
    ->save();
}

Functions

Namesort descending Description
media_entity_facebook_post_update_set_default_config Set defaults for new config settings.