You are here

function fb_register_now_form in Drupal for Facebook 6.2

1 string reference to 'fb_register_now_form'
fb_register_detail_page in contrib/fb_register.module

File

contrib/fb_register.module, line 110
This code aims to prevent duplicate accounts.

Code

function fb_register_now_form($form_state, $fb_app, $how_many) {

  //dpm(func_get_args(), "fb_register_now_form");

  // Display a summary.
  $form['summary'] = array(
    '#type' => 'markup',
    '#value' => _fb_register_summary($fb_app),
  );
  $form['how_many'] = array(
    '#type' => 'textfield',
    '#title' => 'Register (up to) how many local users?',
    '#default_value' => $how_many,
  );
  $form['fb_app_label'] = array(
    '#type' => 'value',
    '#value' => $fb_app->label,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Register Now'),
  );
  return $form;
}