function pmpapi_pull_get_entities in Public Media Platform API Integration 7
Gets all entity info.
Basically a wrapper around entity_get_info(), in case modules want to alter the returned entity info.
Return value
array (Possibly altered) info on all defined entities.
4 calls to pmpapi_pull_get_entities()
- 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().
- pmpapi_pull_uninstall in pmpapi_pull/
pmpapi_pull.install - Implements hook_uninstall().
File
- pmpapi_pull/
pmpapi_pull.module, line 267 - Allows admins to pull content from the PMP API, and turn PMP docs into (locally-stored, independent) drupal entities.
Code
function pmpapi_pull_get_entities() {
$entities = entity_get_info();
drupal_alter('pmpapi_pull_get_entities', $entities);
return $entities;
}