You are here

deploy_example.deploy_endpoints.inc in Deploy - Content Staging 7.2

Same filename and directory in other branches
  1. 7.3 modules/deploy_example/deploy_example.deploy_endpoints.inc

File

modules/deploy_example/deploy_example.deploy_endpoints.inc
View source
<?php

/**
 * @file
 * deploy_example.deploy_endpoints.inc
 */

/**
 * Implements hook_deploy_endpoints_default().
 */
function deploy_example_deploy_endpoints_default() {
  $export = array();
  $endpoint = new DeployEndpoint();
  $endpoint->disabled = FALSE;

  /* Edit this to true to make a default endpoint disabled initially */
  $endpoint->api_version = 1;
  $endpoint->name = 'deploy_example_endpoint';
  $endpoint->title = 'Example endpoint';
  $endpoint->description = 'Example endpoint using session authentication (but no pre-configured user credentials). Works well with the UUID Services Example feature on the endpoint site.';
  $endpoint->debug = 1;
  $endpoint->authenticator_plugin = 'DeployAuthenticatorSession';
  $endpoint->authenticator_config = array(
    'username' => '',
    'password' => '',
  );
  $endpoint->service_plugin = 'DeployServiceRestJSON';
  $endpoint->service_config = array(
    'url' => 'http://example.com/api',
  );
  $export['deploy_example_endpoint'] = $endpoint;
  return $export;
}

Functions

Namesort descending Description
deploy_example_deploy_endpoints_default Implements hook_deploy_endpoints_default().