function ldap_authorization_update_7106 in Lightweight Directory Access Protocol (LDAP) 7
Same name and namespace in other branches
- 8.2 ldap_authorization/ldap_authorization.install \ldap_authorization_update_7106()
- 7.2 ldap_authorization/ldap_authorization.install \ldap_authorization_update_7106()
add nested checkboxes to derive from entry and attributes strategies.
File
- ldap_authorization/
ldap_authorization.install, line 184 - Install, update and uninstall functions for the LDAP authorization module.
Code
function ldap_authorization_update_7106() {
if (!db_field_exists('ldap_authorization', 'derive_from_attr_nested')) {
db_add_field('ldap_authorization', 'derive_from_attr_nested', array(
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 0,
));
$msg = t('"derive_from_attr_nested" field added to ldap_authorization table');
}
if (!db_field_exists('ldap_authorization', 'derive_from_entry_nested')) {
db_add_field('ldap_authorization', 'derive_from_entry_nested', array(
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 0,
));
$msg .= t('"derive_from_entry_nested" field added to ldap_authorization table');
}
return $msg ? $msg : t('No database changes made.');
}