You are here

function fbconnect_profile_import_form in Facebook Connect 5

Return the import form.

1 string reference to 'fbconnect_profile_import_form'
fbconnect_profile_import_page in modules/fbconnect_profile/fbconnect_profile.module
This function build the user import page.

File

modules/fbconnect_profile/fbconnect_profile.module, line 41
This module allows users to import their personal information from Facebook.

Code

function fbconnect_profile_import_form() {
  $form['imp'] = array(
    '#type' => 'fieldset',
    '#collapsible' => FALSE,
  );
  $fbuid = fbconnect_get_fbuid();
  $form['imp']['field_import'] = array(
    '#type' => 'checkboxes',
    '#options' => fbconnect_profile_available_import($fbuid),
    '#default_value' => variable_get('fbconnect_profile_fields', NULL),
    '#description' => t('Select the public Facebook profile information you wish to import.
      This information will be displayed on your public profile.'),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Next'),
  );
  return $form;
}