You are here

function fb_admin_settings_form_validate in Drupal for Facebook 7.4

File

./fb.admin.inc, line 1175

Code

function fb_admin_settings_form_validate(&$form, &$form_state) {
  $values = $form_state['values'];
  if ($values[FB_VAR_USE_JSON_BIGINT]) {
    $test = json_decode('[1000000000000]', TRUE, 512, JSON_BIGINT_AS_STRING);
    if (!is_string($test[0])) {
      form_error($form[FB_VAR_USE_JSON_BIGINT], t('Your system does not appear to support JSON_BIGINT_AS_STRING!'));
    }
  }
}