You are here

function fb_element_info in Drupal for Facebook 7.4

Implements hook_element_info().

File

./fb.module, line 555

Code

function fb_element_info() {
  return array(
    // Friend selector uses JQuery UI autocomplete.
    'fb_friend_select' => array(
      '#input' => TRUE,
      '#process' => array(
        'fb_friend_select_process',
      ),
      '#element_validate' => array(
        'fb_friend_select_validate',
      ),
      '#theme_wrappers' => array(
        'form_element',
      ),
      '#base_type' => 'textfield',
    ),
    // Admin form element to generate a new token.
    'fb_admin_token_generate' => array(
      '#input' => TRUE,
      '#process' => array(
        'fb_admin_token_generate_process',
      ),
      '#element_validate' => array(
        'fb_admin_token_generate_validate',
      ),
      // Undocumented but vital, thanks drupal.org!
      '#theme_wrappers' => array(
        'form_element',
      ),
      '#base_type' => 'fieldset',
    ),
    // Admin form element to select a previously saved token.
    'fb_admin_token_select' => array(
      '#input' => TRUE,
      '#process' => array(
        'fb_admin_token_select_process',
      ),
      '#element_validate' => array(
        'fb_admin_token_select_validate',
      ),
      '#theme_wrappers' => array(
        'form_element',
      ),
      '#base_type' => 'fieldset',
    ),
  );
}