You are here

function media_browser_plus_install in Media Browser Plus 7.2

Same name and namespace in other branches
  1. 7.3 media_browser_plus.install \media_browser_plus_install()
  2. 7 media_browser_plus.install \media_browser_plus_install()

Implements hook_install().

File

./media_browser_plus.install, line 10
Install file for media_browser_plus.

Code

function media_browser_plus_install() {

  // Make sure the standard 'field_tags' field exists.
  _media_browser_plus_ensure_field_folder();

  // On installation attempt we have to trust the install profile - otherwise
  // we get collisions with the tag name.
  if (drupal_installation_attempted() && !variable_get('simpletest_parent_profile', FALSE)) {
    _media_browser_plus_ensure_field_tags();
  }
}