You are here

function ldapdata_install in LDAP integration 6

Same name and namespace in other branches
  1. 5 ldapdata.install \ldapdata_install()

Implementation of hook_install().

File

./ldapdata.install, line 37
ldapdata module installation and upgrade code.

Code

function ldapdata_install() {

  // We're adding to an existing table, not creating a new one.
  $ret = array();
  db_add_field($ret, 'ldapauth', 'ldapdata_binddn', array(
    'type' => 'varchar',
    'length' => 255,
  ));
  db_add_field($ret, 'ldapauth', 'ldapdata_bindpw', array(
    'type' => 'varchar',
    'length' => 255,
  ));
  db_add_field($ret, 'ldapauth', 'ldapdata_rwattrs', array(
    'type' => 'text',
    'not null' => FALSE,
  ));
  db_add_field($ret, 'ldapauth', 'ldapdata_roattrs', array(
    'type' => 'text',
    'not null' => FALSE,
  ));
  db_add_field($ret, 'ldapauth', 'ldapdata_mappings', array(
    'type' => 'text',
    'not null' => FALSE,
  ));
  db_add_field($ret, 'ldapauth', 'ldapdata_attrs', array(
    'type' => 'text',
    'not null' => FALSE,
  ));
  db_add_field($ret, 'ldapauth', 'ldapdata_filter_php', array(
    'type' => 'text',
    'not null' => FALSE,
  ));
  return $ret;
}