function pmpapi_pull_permission in Public Media Platform API Integration 7
Implements hook_permission().
File
- pmpapi_pull/
pmpapi_pull.module, line 12 - Allows admins to pull content from the PMP API, and turn PMP docs into (locally-stored, independent) drupal entities.
Code
function pmpapi_pull_permission() {
return array(
'administer PMP pull' => array(
'title' => t('Administer pulls from the PMP API'),
'description' => t('Perform administration tasks for pulls from the PMP API.'),
),
'pull PMP content' => array(
'title' => t('Pull PMP content'),
'description' => t('Pull PMP content to create entities.'),
),
);
}