function key_get_integrations_as_options in Key 7
Gets all key integrations as options, for use in forms.
Parameters
string $status: An enabled status by which to filter the results.
string $type: An integration type by which to filter the results.
bool $reset: A flag to force a reset of the integration data.
Return value
array An array of integrations, with names for keys and labels for values.
1 call to key_get_integrations_as_options()
- key_integration_features_export_options in includes/
key_integration.features.inc - * Implements hook_features_export_options().
File
- ./
key.module, line 552 - Provides the ability to manage keys, which can be used by other modules.
Code
function key_get_integrations_as_options($status = NULL, $type = NULL, $reset = FALSE) {
$integrations = key_get_integrations($status, $type, $reset);
$options = array();
foreach ($integrations as $name => $integration) {
$options[$name] = $integration['title'];
}
return $options;
}