You are here

function fb_form_elements in Drupal for Facebook 6.2

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

File

./fb_form.module, line 288
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,
  );
  $items['fb_form_friend_selector'] = array(
    '#input' => TRUE,
    '#tree' => TRUE,
    '#process' => array(
      'fb_form_friend_selector_process' => array(),
    ),
  );
  return $items;
}