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

Upgrade drupal_get_form().

parent 4e07947d
No related branches found
No related tags found
No related merge requests found
...@@ -205,14 +205,13 @@ abstract class FeedsConfigurable { ...@@ -205,14 +205,13 @@ abstract class FeedsConfigurable {
* The form method that should be rendered. * The form method that should be rendered.
* *
* @return * @return
* Rendered config form, if available. Empty string otherwise. * Config form array if available. NULL otherwise.
*/ */
function feeds_get_form($configurable, $form_method) { function feeds_get_form($configurable, $form_method) {
$form_state = array(); $form_state = array();
if (method_exists($configurable, $form_method)) { if (method_exists($configurable, $form_method)) {
return drupal_get_form(get_class($configurable) .'_feeds_form', $configurable, $form_method); return drupal_get_form(get_class($configurable) .'_feeds_form', $configurable, $form_method);
} }
return '';
} }
/** /**
......
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