function ldap_servers_features_export in LDAP integration 6
Implementation of hook_features_export [component hook]
This defines the component dependencies and ldap server records to export.
Parameters
array $data:
array &$export:
string $module_name:
Return value
array
File
- ./
ldapauth.features.inc, line 40 - Feature related functions.
Code
function ldap_servers_features_export($data, &$export, $module_name = "") {
module_load_include('inc', 'ldapauth', 'includes/ldap.core');
$export['dependencies']['ldapauth'] = 'ldapauth';
$submodules = ldapauth_submodules('ldap_servers');
foreach ($submodules as $submodule) {
if (module_exists($submodule)) {
$export['dependencies'][$submodule] = $submodule;
}
}
foreach ($data as $component) {
$export['features']['ldap_servers'][$component] = $component;
}
return array();
}