function shoutbox_permission in Shoutbox 7.2
Same name and namespace in other branches
- 7 shoutbox.module \shoutbox_permission()
Implements hook_permission().
File
- ./
shoutbox.module, line 178 - Shoutbox module displays a block for users to create short messages for the whole site. Uses AHAH to update the database and display content.
Code
function shoutbox_permission() {
return array(
'administer shoutbox' => array(
'title' => t('Administer shoutbox'),
'description' => t('Administer shoutbox and ' . DEFAULTSHOUTPLURAL . ' settings.'),
),
'moderate shoutbox' => array(
'title' => t('Moderate ' . DEFAULTSHOUTPLURAL),
'description' => t('Enable/Disable posts from other users.'),
),
'access shoutbox' => array(
'title' => t('View shoutbox'),
),
'post shouts' => array(
'title' => t('Post ' . DEFAULTSHOUTPLURAL),
),
'post shouts without approval' => array(
'title' => t('Skip ' . DEFAULTSHOUTSINGULAR . ' approval'),
),
'edit own shouts' => array(
'title' => t('Edit own ' . DEFAULTSHOUTPLURAL),
),
'delete own shouts' => array(
'title' => t('Delete own ' . DEFAULTSHOUTPLURAL),
),
);
}