function ldapauth_features_api in LDAP integration 6
Implementation of hook_features_api().
Defines the ldap_settings and ldap_servers feature components. Note: This defines feature support for ldapauth, ldapdata, ldapgroups and ldapsync modules since they all build on ldapauth.
File
- ./
ldapauth.module, line 748 - ldapauth provides authentication against ldap server.
Code
function ldapauth_features_api() {
$info = array(
'ldap_servers' => array(
'name' => 'LDAP Integration',
'default_hook' => 'default_ldap_servers',
'default_file' => FEATURES_DEFAULTS_INCLUDED_COMMON,
'feature_source' => TRUE,
'file' => drupal_get_path('module', 'ldapauth') . '/ldapauth.features.inc',
),
);
if (module_exists('strongarm')) {
$info['ldap_settings'] = array(
'name' => 'LDAP Integration',
'default_hook' => 'default_ldap_settings',
'default_file' => FEATURES_DEFAULTS_INCLUDED_COMMON,
'feature_source' => TRUE,
'file' => drupal_get_path('module', 'ldapauth') . '/ldapauth.features.inc',
);
}
return $info;
}