You are here

og_access.install in Organic groups 7

Same filename and directory in other branches
  1. 7.2 og_access/og_access.install

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

File

og_access/og_access.install
View source
<?php

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

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

/**
 * Implements hook_schema();
 */
function og_access_schema() {
  if (db_table_exists('og_access_post')) {
    db_rename_table('og_access_post', 'd6_og_access_post');
  }
}

/**
 * Implements hook_update_dependencies().
 */
function og_access_update_dependencies() {
  $dependencies = array();
  $dependencies['og_access'][7000] = array(
    'og' => 7000,
  );
  return $dependencies;
}

/**
 * Upgrade from Organic groups access 6 to 7.
 */
function og_access_update_7000(&$sandbox) {
}

Functions

Namesort descending Description
og_access_schema Implements hook_schema();
og_access_uninstall Implements hook_uninstall().
og_access_update_7000 Upgrade from Organic groups access 6 to 7.
og_access_update_dependencies Implements hook_update_dependencies().