You are here

function pmpapi_pmpapi_profile_info in Public Media Platform API Integration 7

Implements hook_pmpapi_profile_info().

File

./pmpapi.module, line 311
Creates basic calls to the PMP API.

Code

function pmpapi_pmpapi_profile_info() {
  $pmp['story'] = array(
    'title' => array(
      'type' => 'text',
      'accepted_types' => array(
        'text',
      ),
      'description' => t('The title of the doc.'),
      'required' => TRUE,
    ),
    'byline' => array(
      'type' => 'text',
      'accepted_types' => array(
        'text',
      ),
      'description' => t('Rendered byline as suggested by document distributor.'),
    ),
    'published' => array(
      'type' => 'datetime',
      'accepted_types' => array(
        'date',
        'datetime',
        'datestamp',
      ),
      'description' => t('Display date of the document ("published" date), in ISO 8601.'),
    ),
    'contentencoded' => array(
      'type' => 'text',
      'accepted_types' => array(
        'text',
        'text_long',
        'text_with_summary',
      ),
      'description' => t('A representation of the content which can be used literally as HTML-encoded content.'),
    ),
    'contenttemplated' => array(
      'type' => 'text',
      'accepted_types' => array(
        'text',
        'text_long',
        'text_with_summary',
      ),
      'description' => t('A representation of the content which has placeholders for rich-media assets.'),
    ),
    'description' => array(
      'type' => 'text',
      'accepted_types' => array(
        'text',
        'text_long',
      ),
      'description' => t('A representation of the content of this document without HTML.'),
    ),
    'teaser' => array(
      'type' => 'text',
      'accepted_types' => array(
        'text',
        'text_long',
      ),
      'description' => t('A short description, appropriate for showing in small spaces.'),
    ),
    'tags' => array(
      'type' => 'array',
      'accepted_types' => array(
        'text',
        'taxonomy_term_reference',
      ),
      'description' => t('Tags.'),
      'multiple' => TRUE,
    ),
    'item' => array(
      'type' => 'item',
      'accepted_types' => array(
        'image',
        'file',
        'entityreference',
      ),
      'multiple' => TRUE,
    ),
  );
  $pmp['image'] = array(
    'title' => array(
      'type' => 'text',
      'accepted_types' => array(
        'text',
      ),
      'description' => t('The title of the doc.'),
      'required' => TRUE,
    ),
    'byline' => array(
      'type' => 'text',
      'accepted_types' => array(
        'text',
      ),
      'description' => t('Rendered byline as suggested by document distributor.'),
    ),
    'description' => array(
      'type' => 'text',
      'accepted_types' => array(
        'text',
      ),
      'description' => t('A representation of the content of this document without HTML.'),
    ),
  );
  $pmp['video'] = array(
    'title' => array(
      'type' => 'text',
      'accepted_types' => array(
        'text',
      ),
      'description' => t('The title of the doc.'),
      'required' => TRUE,
    ),
    'description' => array(
      'type' => 'text',
      'accepted_types' => array(
        'text',
        'text_long',
      ),
      'description' => t('A representation of the content of this document without HTML.'),
    ),
    'teaser' => array(
      'type' => 'text',
      'accepted_types' => array(
        'text',
        'text_long',
      ),
      'description' => t('A short description, appropriate for showing in small spaces.'),
    ),
    'tags' => array(
      'type' => 'array',
      'accepted_types' => array(
        'text',
        'taxonomy_term_reference',
      ),
      'description' => t('Tags.'),
      'multiple' => TRUE,
    ),
    'published' => array(
      'type' => 'datetime',
      'accepted_types' => array(
        'date',
        'datetime',
        'datestamp',
      ),
      'description' => t('Display date of the document ("published" date), in ISO 8601.'),
    ),
    'contentencoded' => array(
      'type' => 'text',
      'accepted_types' => array(
        'text',
        'text_long',
        'text_with_summary',
      ),
      'description' => t('A representation of the content which can be used literally as HTML-encoded content.'),
    ),
  );
  $pmp['audio'] = array(
    'title' => array(
      'type' => 'text',
      'accepted_types' => array(
        'text',
      ),
      'description' => t('The title of the doc.'),
      'required' => TRUE,
    ),
    'description' => array(
      'type' => 'text',
      'accepted_types' => array(
        'text',
      ),
      'description' => t('A representation of the content of this document without HTML.'),
    ),
  );
  return $pmp;
}