You are here

function pmpapi_get_profile_info in Public Media Platform API Integration 7

Fetches profile info for a given profile name.

Parameters

$profile: The name of a PMP profile.

Return value

array The profile info, or an empty array if profile does not exist.

7 calls to pmpapi_get_profile_info()
PMPAPIDrupalPull::mapFields in pmpapi_pull/classes/PMPAPIDrupalPull.php
Maps PMP doc attributes to entity fields.
PMPAPIDrupalPush::createHypermediaDoc in pmpapi_push/classes/PMPAPIDrupalPush.php
Creates a hypermedia doc to be sent to the PMP.
pmpapi_pull_admin_config in pmpapi_pull/pmpapi_pull.admin.inc
Form constructor for the PMPAPI pull admin form.
pmpapi_pull_admin_config_submit in pmpapi_pull/pmpapi_pull.admin.inc
Form submission handler for pmpapi_pull_admin_config().
pmpapi_pull_admin_config_validate in pmpapi_pull/pmpapi_pull.admin.inc
Form validation handler for pmpapi_pull_admin_config().

... See full list

File

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

Code

function pmpapi_get_profile_info($profile = 'story') {
  $info = module_invoke_all('pmpapi_profile_info');
  drupal_alter('pmpapi_profile_info', $info);
  if (!empty($info[$profile])) {
    return $info[$profile];
  }
  return array();
}