You are here

function thunder_update_8004 in Thunder 8.2

Require instagram and twitter url field.

File

./thunder.install, line 204
Install, update and uninstall functions for the thunder installation profile.

Code

function thunder_update_8004() {
  $config = FieldConfig::load('media.instagram.field_url');
  if ($config) {
    $config
      ->setRequired(TRUE)
      ->save();
  }
  $config = FieldConfig::load('media.twitter.field_url');
  if ($config) {
    $config
      ->setRequired(TRUE)
      ->save();
  }
}