You are here

function deploy_auth_invoke in Deploy - Content Staging 6

Invokes an authentication callback.

6 calls to deploy_auth_invoke()
deploy_ahah_auth_form in ./deploy.module
A generic AHAH form callback that returns the authentication form for a server or a authentication type.
deploy_drush_command in includes/deploy.drush.inc
Implementation of hook_drush_command().
deploy_plan_cleanup in ./deploy.module
Clean up after ourselves once a deployment is done.
deploy_plan_init in ./deploy.module
Initiate depolyment.
deploy_send in ./deploy.module
Push an item from a deployment plan to the remote server.

... See full list

File

./deploy.module, line 977
Deployment API which enables modules to deploy items between servers.

Code

function deploy_auth_invoke($type_name, $callback_type, &$a1 = NULL, &$a2 = NULL, &$a3 = NULL) {
  $type = deploy_get_auth_type($type_name);
  if (!isset($type[$callback_type]) || $type[$callback_type] === TRUE) {
    return TRUE;
  }
  else {
    $function = $type[$callback_type];
    return $function($a1, $a2, $a3);
  }
}