function fb_canvas_form_action_via_facebook in Drupal for Facebook 5.2
Same name and namespace in other branches
- 6.2 fb_canvas.module \fb_canvas_form_action_via_facebook()
Call this from your form_alter hook to prevent changes to the form's default action.
File
- ./
fb_canvas.module, line 263 - This module provides some app-specific navigation to facebook apps.
Code
function fb_canvas_form_action_via_facebook(&$form) {
if ($form['fb_canvas_form_handler']) {
$form['#action'] = $form['fb_canvas_form_handler']['#action_old'];
}
$form['fb_canvas_form_handler'] = array();
}