You are here

function ldap_servers_update_7103 in Lightweight Directory Access Protocol (LDAP) 7

Same name and namespace in other branches
  1. 8.2 ldap_servers/ldap_servers.install \ldap_servers_update_7103()
  2. 7.2 ldap_servers/ldap_servers.install \ldap_servers_update_7103()

add group_object_category field to ldap_servers table

File

ldap_servers/ldap_servers.install, line 189
Install, update and uninstall functions for the LDAP API module.

Code

function ldap_servers_update_7103() {
  if (!db_field_exists('ldap_servers', 'group_object_category')) {
    db_add_field('ldap_servers', 'group_object_category', array(
      'type' => 'varchar',
      'length' => 64,
      'not null' => FALSE,
    ));
    $msg = t('"group_object_category" field added to ldap_servers table');
  }
  return $msg ? $msg : t('No database changes made.');
}