You are here

function fb_session_key_form in Drupal for Facebook 5.2

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

File

./fb.module, line 559

Code

function fb_session_key_form() {
  global $fb_app;
  $form = array(
    'auth_token' => array(
      '#type' => 'textfield',
      '#title' => t('One-time code'),
      '#description' => t('If you do not have a one-time code, you can get one !here.', array(
        '!here' => l(t('here'), 'http://www.facebook.com/code_gen.php?v=1.0&api_key=' . $fb_app->apikey),
      )),
    ),
    'submit' => array(
      '#type' => 'submit',
      '#value' => t('Submit'),
    ),
    '#redirect' => FALSE,
  );
  return $form;
}