function theme_fb_form_requestform in Drupal for Facebook 6.2
Same name and namespace in other branches
- 6.3 fb_form.module \theme_fb_form_requestform()
- 7.3 fb_form.module \theme_fb_form_requestform()
File
- ./
fb_form.module, line 486 - 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;
}