You are here

function fb_register_now_form_submit in Drupal for Facebook 6.2

File

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

Code

function fb_register_now_form_submit($form, &$form_state) {
  $values = $form_state['values'];

  //dpm($values, "fb_register_now_form_submit");
  $fb_app = fb_get_app(array(
    'label' => $values['fb_app_label'],
  ));
  $success_count = _fb_register_register_users($fb_app, $values['how_many']);
  drupal_set_message(t('%count email addresses registered.', array(
    '%count' => $success_count,
  )));
}