You are here

function feeds_get_form in Feeds 7

Same name and namespace in other branches
  1. 8.2 feeds.module \feeds_get_form()
  2. 6 includes/FeedsConfigurable.inc \feeds_get_form()
  3. 7.2 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

Config form array if available. NULL 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 209
FeedsConfigurable and helper functions.

Code

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