You are here

function fb_form_elements in Drupal for Facebook 5

Same name and namespace in other branches
  1. 5.2 fb_form.module \fb_form_elements()
  2. 6.3 fb_form.module \fb_form_elements()
  3. 6.2 fb_form.module \fb_form_elements()
  4. 7.3 fb_form.module \fb_form_elements()

File

./fb_form.module, line 291
This module defines facebook-specific form elements for use with Drupal's form API.

Code

function fb_form_elements() {
  $items = array();
  $items['fb_form_request_selector'] = array(
    '#input' => TRUE,
    '#tree' => TRUE,
    /* not sure what this does */
    '#process' => array(
      'fb_form_process_request_selector' => array(),
    ),
    // The submit callback does not work properly in <fb:request-form>
    '#executes_submit_callback' => TRUE,
  );

  /* deprecated */
  $items['friend_selector'] = array(
    '#input' => TRUE,
    '#tree' => TRUE,
    '#process' => array(
      'friend_selector_process' => array(),
    ),
  );
  return $items;
}