You are here

function ldap_servers_features_export_options in LDAP integration 6

Implementation of hook_features_export_options. [component_hook]

This hook will alert features of which specific items of this component may be exported. Using ctools export info here.

Return value

array A keyed array of items, suitable for use with a FormAPI select or checkboxes element.

File

./ldapauth.features.inc, line 20
Feature related functions.

Code

function ldap_servers_features_export_options() {
  module_load_include('inc', 'ldapauth', 'includes/ldap.core');
  $options = array();
  $servers = ldapauth_server_load_all();
  foreach ($servers as $server) {
    $options[$server->machine_name] = $server->name;
  }
  return $options;
}