You are here

function fb_install in Drupal for Facebook 7.4

Same name and namespace in other branches
  1. 5.2 fb.install \fb_install()
  2. 5 fb.install \fb_install()
  3. 6.3 fb.install \fb_install()
  4. 6.2 fb.install \fb_install()
  5. 7.3 fb.install \fb_install()

File

./fb.install, line 3

Code

function fb_install() {
  if (defined(JSON_BIGINT_AS_STRING)) {
    $test = json_decode('[1000000000000]', TRUE, 512, JSON_BIGINT_AS_STRING);
  }
  if (!defined(JSON_BIGINT_AS_STRING) || !is_string($test[0])) {
    variable_set(FB_VAR_USE_JSON_BIGINT, FALSE);
  }
}