Created
November 14, 2013 21:48
-
-
Save jstarcher/7474903 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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