You are here

function theme_fb_form_requestform in Drupal for Facebook 6.3

Same name and namespace in other branches
  1. 6.2 fb_form.module \theme_fb_form_requestform()
  2. 7.3 fb_form.module \theme_fb_form_requestform()

File

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

Code

function theme_fb_form_requestform($elements) {

  // content attribute is special.
  if (is_array($elements['#attributes']['content'])) {
    $elements['#attributes']['content'] = drupal_render($elements['#attributes']['content']);
  }
  $output = "<fb:request-form " . drupal_attributes($elements['#attributes']) . ">" . (isset($elements['#children']) ? $elements['#children'] : '') . "</fb:request-form>\n";
  return $output;
}