You are here

function feeds_get_form in Feeds 6

Same name and namespace in other branches
  1. 8.2 feeds.module \feeds_get_form()
  2. 7.2 includes/FeedsConfigurable.inc \feeds_get_form()
  3. 7 includes/FeedsConfigurable.inc \feeds_get_form()

Config form wrapper. Use to render the configuration form of a FeedsConfigurable object.

Parameters

$configurable: FeedsConfigurable object.

$form_method: The form method that should be rendered.

Return value

Rendered config form, if available. Empty string otherwise.

1 call to feeds_get_form()
feeds_ui_edit_page in feeds_ui/feeds_ui.admin.inc
Edit feed configuration.

File

includes/FeedsConfigurable.inc, line 216
FeedsConfigurable and helper functions.

Code

function feeds_get_form($configurable, $form_method) {
  $form_state = array();
  if (method_exists($configurable, $form_method)) {
    return drupal_get_form(get_class($configurable) . '_feeds_form', $configurable, $form_method);
  }
  return '';
}