You are here

og_ui.install in Organic groups 7.2

Same filename and directory in other branches
  1. 7 og_ui/og_ui.install

Install, update, and uninstall functions for the Organic groups UI module.

File

og_ui/og_ui.install
View source
<?php

/**
 * @file
 * Install, update, and uninstall functions for the Organic groups UI module.
 */

/**
 * Implements hook_uninstall().
 */
function og_ui_uninstall() {
  $vars = array(
    'og_ui_admin_people_view',
    'og_ui_deny_subscribe_without_approval',
  );
  foreach ($vars as $var) {
    variable_del($var);
  }
}

/**
 * Enable VBO module.
 */
function og_ui_update_7200(&$sandbox) {
  if (!module_enable(array(
    'views_bulk_operations',
  ))) {
    throw new DrupalUpdateException('This version of OG UI requires Views bulk operation (VBO), but it could not be enabled.');
  }
}

Functions

Namesort descending Description
og_ui_uninstall Implements hook_uninstall().
og_ui_update_7200 Enable VBO module.