Skip to content
Snippets Groups Projects
Commit af845f66 authored by Alex Barth's avatar Alex Barth
Browse files

Fix Form API fake build.

parent f13213cc
No related branches found
No related tags found
No related merge requests found
......@@ -149,8 +149,11 @@ abstract class FeedsConfigurable {
$form_state = array();
$form = $this->configForm($form_state);
// Mimic Form API behavior.
drupal_prepare_form('form_'. get_class($this) .'_feeds_config_form', $form, $form_state);
drupal_alter('form_'. get_class($this) .'_feeds_config_form', $form, $form_state);
drupal_alter('form', $form, $form_state, get_class($this) .'_feeds_config_form');
unset($form['form_token']);
unset($form['form_id']);
$defaults = array();
foreach (element_children($form) as $e) {
if (isset($form[$e]['#default_value'])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment