function fb_is_fb_admin_page in Drupal for Facebook 6.2
Same name and namespace in other branches
- 6.3 fb.module \fb_is_fb_admin_page()
- 7.3 fb.module \fb_is_fb_admin_page()
Helper tells other modules when to load admin hooks.
4 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
File
- ./
fb.module, line 359
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;
}
}