function deploy_get_auth_types in Deploy - Content Staging 6
Get all the available authentication types.
Return value
An associative array of the authentication type definitions.
3 calls to deploy_get_auth_types()
- deploy_drush_command in includes/
deploy.drush.inc - Implementation of hook_drush_command().
- deploy_get_auth_type in ./
deploy.module - Get a specific authentication type.
- deploy_server_form in ./
deploy.servers.admin.inc - Display add/edit deployment server form.
File
- ./
deploy.module, line 995 - Deployment API which enables modules to deploy items between servers.
Code
function deploy_get_auth_types() {
static $types = array();
if (!empty($types)) {
return $types;
}
$auth_modules = module_implements('deploy_auth_info');
foreach ($auth_modules as $module) {
$items = module_invoke($module, 'deploy_auth_info');
// Add the machine readable name to the item it self.
foreach ($items as $name => $item) {
$item['name'] = $name;
$types[$name] = $item;
}
}
// Let other modules alter all authentication types.
drupal_alter('deploy_auth_type', $types);
return $types;
}