simple_ldap_active_group.install in Simple LDAP 7
Same filename and directory in other branches
simple_ldap_active_group module installation.
File
contrib/simple_ldap_active_group/simple_ldap_active_group.installView 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');
}
Functions
Name | Description |
---|---|
simple_ldap_active_group_enable | Implements hook_enable(). |
simple_ldap_active_group_uninstall | Impements hook_uninstall(). |