You are here

function hook_pmpapi_profile_info in Public Media Platform API Integration 7

Add to PMP profile information

See also

pmpapi_get_profile_info()

pmpapi_get_profile_list()

1 function implements hook_pmpapi_profile_info()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

pmpapi_pmpapi_profile_info in ./pmpapi.module
Implements hook_pmpapi_profile_info().
3 invocations of hook_pmpapi_profile_info()
pmpapi_get_profile_info in ./pmpapi.module
Fetches profile info for a given profile name.
pmpapi_get_profile_list in ./pmpapi.module
Creates a list of all profiles.
pmpapi_pull_pmpapi_profile_info_alter in pmpapi_pull/pmpapi_pull.module
Implements hook_pmpapi_profile_info_alter().

File

./pmpapi.api.php, line 14
Hooks provided by the PMPAPI module.

Code

function hook_pmpapi_profile_info() {
  $profiles['segment'] = 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.'),
    ),
    'teaser' => array(
      'type' => 'text',
      'accepted_types' => array(
        'text_textfield',
        'text_long',
      ),
      'description' => t('A short description, appropriate for showing in small spaces.'),
    ),
  );
  return $profiles;
}