You are here

function twitter_post_permission in Twitter 7.6

Same name and namespace in other branches
  1. 7.3 twitter_post/twitter_post.module \twitter_post_permission()
  2. 7.4 twitter_post/twitter_post.module \twitter_post_permission()
  3. 7.5 twitter_post/twitter_post.module \twitter_post_permission()

Implements hook_permission().

File

twitter_post/twitter_post.module, line 14
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'),
      )),
    ),
  );
}