You are here

function fb_is_fb_admin_page in Drupal for Facebook 6.3

Same name and namespace in other branches
  1. 6.2 fb.module \fb_is_fb_admin_page()
  2. 7.3 fb.module \fb_is_fb_admin_page()

Helper tells other modules when to load admin hooks.

5 calls to fb_is_fb_admin_page()
fb_app_fb in ./fb_app.module
Implementation of hook_fb().
fb_canvas_fb in ./fb_canvas.module
Implementation of hook_fb().
fb_connect_fb in ./fb_connect.module
Implementation of hook_fb().
fb_load in ./fb.module
Implementation of a %wildcard_load(). http://drupal.org/node/224170
fb_tab_fb in ./fb_tab.module
Implementation of hook_fb

File

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

Code

function fb_is_fb_admin_page() {
  if (arg(0) == 'admin' && (arg(1) == 'fb' || arg(2) == 'fb')) {

    // Keep consistant titles across tabs served by multiple modules.
    if ($label = arg(FB_PATH_ADMIN_APPS_ARGS)) {
      drupal_set_title($label);
    }
    else {
      drupal_set_title(t('Drupal for Facebook'));
    }
    return TRUE;
  }
}