You are here

function fb_permission in Drupal for Facebook 7.4

Same name and namespace in other branches
  1. 7.3 fb.module \fb_permission()

Implements hook_permission().

Allow only the most privileged administrators to see the facebook tokens and application secrets.

File

./fb.module, line 134

Code

function fb_permission() {
  return array(
    FB_PERM_ADMINISTER => array(
      'title' => t('Administer Facebook integration'),
      'description' => t('Control how this site interacts with Facebook.com'),
      'restrict access' => TRUE,
    ),
    FB_PERM_ADMINISTER_TOKEN => array(
      'title' => t('Administer Facebook tokens and secrets'),
      'description' => t('View and edit sensitive Facebook user information.'),
      'restrict access' => TRUE,
    ),
  );
}