You are here

function deploy_remote_cc_services_resources in Deploy - Content Staging 7.3

Implements hook_services_resources().

File

modules/deploy_remote_cc/deploy_remote_cc.module, line 40
Remote Cache clear module.

Code

function deploy_remote_cc_services_resources() {
  return array(
    'remote_cache_clear' => array(
      'actions' => array(
        'cache_clear' => array(
          'help' => 'Clears remote endpoints cache clear',
          'callback' => '_remote_endpoint_cache_clear',
          'args' => array(
            array(
              'name' => 'username',
              'type' => 'string',
              'description' => '',
              'source' => array(
                'data' => 'username',
              ),
              'optional' => FALSE,
            ),
          ),
          'access callback' => '_remote_endpoint_cc_resource_access',
          'access arguments' => array(
            'view',
          ),
          'access arguments append' => TRUE,
        ),
      ),
    ),
  );
}