You are here

simple_ldap_active_group.install in Simple LDAP 7

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

simple_ldap_active_group module installation.

File

contrib/simple_ldap_active_group/simple_ldap_active_group.install
View source
<?php

/**
 * @file
 * simple_ldap_active_group module installation.
 */

/**
 * Implements hook_enable().
 */
function simple_ldap_active_group_enable() {
  $weight = db_select('system', 's')
    ->fields('s', array(
    'weight',
  ))
    ->condition('name', 'simple_ldap_user', '=')
    ->execute()
    ->fetchField();
  db_update('system')
    ->fields(array(
    'weight' => $weight + 1,
  ))
    ->condition('name', 'simple_ldap_active_group', '=')
    ->execute();
}

/**
 * Impements hook_uninstall().
 */
function simple_ldap_active_group_uninstall() {
  variable_del('simple_ldap_active_group_group');
  variable_del('simple_ldap_active_group_delete_filtered');
}