function twitter_post_permission in Twitter 7.5
Same name and namespace in other branches
- 7.6 twitter_post/twitter_post.module \twitter_post_permission()
- 7.3 twitter_post/twitter_post.module \twitter_post_permission()
- 7.4 twitter_post/twitter_post.module \twitter_post_permission()
Implements hook_permission().
File
- twitter_post/
twitter_post.module, line 27 - Hook implementations for twitter_post module.
Code
function twitter_post_permission() {
return array(
'post to twitter' => array(
'title' => t('Post a message to Twitter'),
'description' => t('This permission is limited to only allowing the user to post using authenticated accounts that they own, they may not post using a "global" account.'),
),
'post to twitter with global account' => array(
'title' => t('Post a message to Twitter using a global account'),
'description' => t('Ordinarily users are only able to post using their own authenticated accounts. This option allows users to also post using someone else\'s account that is marked as being "global". This permission must be given in addition to @post.', array(
'@post' => t('Post a message to Twitter'),
)),
),
);
}