You are here

function content_copy_service_service in Deploy - Content Staging 5

Same name and namespace in other branches
  1. 6 services/content_copy_service/content_copy_service.module \content_copy_service_service()

Implementation of hook_service()

File

services/content_copy_service/content_copy_service.module, line 21

Code

function content_copy_service_service() {
  return array(
    // content_copy.import
    array(
      '#method' => 'content_copy.import',
      '#callback' => 'content_copy_service_import',
      '#args' => array(
        array(
          '#name' => 'type_name',
          '#type' => 'string',
          '#description' => t('Content type name to import fields into (or "create" to create new).'),
        ),
        array(
          '#name' => 'export',
          '#type' => 'text',
          '#description' => t('Text of a content copy export'),
        ),
      ),
      '#return' => 'boolean',
      '#help' => t('Import a content type macro'),
    ),
    // content_copy.export
    array(
      '#method' => 'content_copy.export',
      '#callback' => 'content_copy_service_export',
      '#args' => array(
        array(
          '#name' => 'type_name',
          '#type' => 'string',
          '#description' => t('The content type to export'),
        ),
      ),
      '#return' => 'string',
      '#help' => t('Export a content type macro'),
    ),
  );
}