function ldap_authorization_install in Lightweight Directory Access Protocol (LDAP) 7.2
Same name and namespace in other branches
- 8.2 ldap_authorization/ldap_authorization.install \ldap_authorization_install()
Implements hook_install().
File
- ldap_authorization/
ldap_authorization.install, line 31 - Install, update and uninstall functions for the LDAP authorization module.
Code
function ldap_authorization_install() {
cache_clear_all('field_info_types:', 'cache_field', TRUE);
foreach (ldap_authorization_user_entity_fields() as $field_id => $field_conf) {
$field_info = field_info_field($field_id);
if (!$field_info) {
field_create_field($field_conf['field']);
field_create_instance($field_conf['instance']);
}
}
}