You are here

function fb_is_page_admin in Drupal for Facebook 7.3

Same name and namespace in other branches
  1. 6.3 fb.module \fb_is_page_admin()

Does the current user administer the current page?

Expect this to work only when fb_is_tab() returns TRUE.

File

./fb.module, line 944
This is the core required module of Drupal for Facebook.

Code

function fb_is_page_admin() {
  global $_fb;
  if (!empty($_fb)) {
    $sr = $_fb
      ->getSignedRequest();
    return isset($sr['page']) && $sr['page']['admin'];
  }
}