function theme_fb_form_request in Drupal for Facebook 6.2
Same name and namespace in other branches
- 5.2 fb_form.module \theme_fb_form_request()
- 5 fb_form.module \theme_fb_form_request()
Based on theme_form, this renders an fb:request-form.
File
- ./
fb_form.module, line 226 - This module defines facebook-specific form elements for use with Drupal's form API.
Code
function theme_fb_form_request($element) {
// TODO: verify attributes required by facebook are found.
// Anonymous div to satisfy XHTML compliance.
$action = $element['#action'] ? 'action="' . check_url($element['#action']) . '" ' : '';
$output = '<fb:request-form ' . $action . ' method="' . $element['#method'] . '" ' . 'id="' . $element['#id'] . '"' . drupal_attributes($element['#attributes']) . ">\n<div>" . $element['#children'] . "\n</div></fb:request-form>\n";
return $output;
}