Skip to content

Instantly share code, notes, and snippets.

@jstarcher
Created November 14, 2013 21:48
Show Gist options
  • Save jstarcher/7474903 to your computer and use it in GitHub Desktop.
Save jstarcher/7474903 to your computer and use it in GitHub Desktop.
function ers_permission() {
$items = array(
'administer ers' => array(
'title' => t('Administer entity revision scheduler'),
'description' => t('Allows a user to administer settings for the entity revision scheduler.'),
),
'ers preview schedule' => array(
'title' => t('Preview entity schedule'),
'description' => t('Allows a user to preview the future schedule of entities using the Preview schedule block.'),
),
);
// Delegate.
foreach (ers_get_plugins_with_hook('permission') as $handler)
$handler->hook_permission($items);
}
return $items;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment