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