og_ui.install in Organic groups 7.2
Same filename and directory in other branches
Install, update, and uninstall functions for the Organic groups UI module.
File
og_ui/og_ui.installView 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
Name![]() |
Description |
---|---|
og_ui_uninstall | Implements hook_uninstall(). |
og_ui_update_7200 | Enable VBO module. |