You are here

media_vimeo.install in Media: Vimeo 7.2

Same filename and directory in other branches
  1. 6 media_vimeo.install
  2. 7 media_vimeo.install

Install, update and uninstall functions for the Media: Vimeo module.

File

media_vimeo.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for the Media: Vimeo module.
 */

/**
 * Empty update function.
 */
function media_vimeo_update_7200() {

  // Code removed in response to http://drupal.org/node/1911970.
}

/**
 * Remove obsolete variables.
 */
function media_vimeo_update_7201() {

  // Create an array of variables sans 'media_vimeo' prefix.
  $variables = array(
    'width',
    'height',
    'preview_uri',
    'api',
    'autoplay',
    'byline',
    'color',
    'loop',
    'portrait',
    'title',
    'protocol',
  );
  foreach ($variables as $variable) {

    // Remove the old variable.
    variable_del('media_vimeo__' . $variable);
  }
}

Functions

Namesort descending Description
media_vimeo_update_7200 Empty update function.
media_vimeo_update_7201 Remove obsolete variables.