You are here

function fb_session_key_form in Drupal for Facebook 5

Same name and namespace in other branches
  1. 5.2 fb.module \fb_session_key_form()
  2. 6.2 fb.module \fb_session_key_form()
1 string reference to 'fb_session_key_form'
_fb_session_cb in ./fb.module

File

./fb.module, line 505

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;
}