function ldapgroups_install in LDAP integration 6
Same name and namespace in other branches
- 5 ldapgroups.install \ldapgroups_install()
Implementation of hook_install().
File
- ./
ldapgroups.install, line 37 - ldapgroups module installation and upgrade code.
Code
function ldapgroups_install() {
// We're adding to an existing table, not creating a new one.
$ret = array();
db_add_field($ret, 'ldapauth', 'ldapgroups_in_dn', array(
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => '0',
));
db_add_field($ret, 'ldapauth', 'ldapgroups_dn_attribute', array(
'type' => 'varchar',
'length' => 255,
));
db_add_field($ret, 'ldapauth', 'ldapgroups_attr', array(
'type' => 'varchar',
'length' => 255,
));
db_add_field($ret, 'ldapauth', 'ldapgroups_in_attr', array(
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => '0',
));
db_add_field($ret, 'ldapauth', 'ldapgroups_as_entries', array(
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => '0',
));
db_add_field($ret, 'ldapauth', 'ldapgroups_entries', array(
'type' => 'text',
));
db_add_field($ret, 'ldapauth', 'ldapgroups_entries_attribute', array(
'type' => 'varchar',
'length' => 255,
));
db_add_field($ret, 'ldapauth', 'ldapgroups_mappings', array(
'type' => 'text',
'not null' => FALSE,
));
db_add_field($ret, 'ldapauth', 'ldapgroups_mappings_filter', array(
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => '0',
));
db_add_field($ret, 'ldapauth', 'ldapgroups_filter_php', array(
'type' => 'text',
'not null' => FALSE,
));
db_add_field($ret, 'ldapauth', 'ldapgroups_groups', array(
'type' => 'text',
'not null' => FALSE,
));
return $ret;
}