You are here

function ldapgroups_schema_alter in LDAP integration 6

Implementation of hook_schema_alter().

Parameters

&$schema Nested array describing the schemas for all modules.:

File

./ldapgroups.module, line 97
ldapgroups integrates ldap groups with drupal roles.

Code

function ldapgroups_schema_alter($schema) {
  $schema['ldapauth']['fields']['ldapgroups_in_dn'] = array(
    'type' => 'int',
    'size' => 'tiny',
    'not null' => TRUE,
    'default' => '0',
  );
  $schema['ldapauth']['fields']['ldapgroups_dn_attribute'] = array(
    'type' => 'varchar',
    'length' => 255,
  );
  $schema['ldapauth']['fields']['ldapgroups_attr'] = array(
    'type' => 'varchar',
    'length' => 255,
  );
  $schema['ldapauth']['fields']['ldapgroups_in_attr'] = array(
    'type' => 'int',
    'size' => 'tiny',
    'not null' => TRUE,
    'default' => '0',
  );
  $schema['ldapauth']['fields']['ldapgroups_as_entries'] = array(
    'type' => 'int',
    'size' => 'tiny',
    'not null' => TRUE,
    'default' => '0',
  );
  $schema['ldapauth']['fields']['ldapgroups_entries'] = array(
    'type' => 'text',
  );
  $schema['ldapauth']['fields']['ldapgroups_entries_attribute'] = array(
    'type' => 'varchar',
    'length' => 255,
  );
  $schema['ldapauth']['fields']['ldapgroups_mappings'] = array(
    'type' => 'text',
    'not null' => FALSE,
  );
  $schema['ldapauth']['fields']['ldapgroups_mappings_filter'] = array(
    'type' => 'int',
    'size' => 'tiny',
    'not null' => TRUE,
    'default' => '0',
  );
  $schema['ldapauth']['fields']['ldapgroups_filter_php'] = array(
    'type' => 'text',
    'not null' => FALSE,
  );
  $schema['ldapauth']['fields']['ldapgroups_groups'] = array(
    'type' => 'text',
    'not null' => FALSE,
  );
}