function _fb_settings_parse_nid in Drupal for Facebook 5
Parse the application nid from the URL. This may be called before custom_url_rewrite, so we can't count on fb_settings() to return the value.
2 calls to _fb_settings_parse_nid()
File
- ./
fb_settings.inc, line 128
Code
function _fb_settings_parse_nid() {
if (isset($_GET['q'])) {
$path = $_GET['q'];
if (strpos($path, FB_SETTINGS_APP_NID . '/') === 0) {
// Too soon for arg() function.
$args = explode('/', $path);
return $args[1];
}
}
}