You are here

function theme_feeds_ui_plugin_form in Feeds 7.2

Same name and namespace in other branches
  1. 8.2 feeds_ui/feeds_ui.admin.inc \theme_feeds_ui_plugin_form()
  2. 6 feeds_ui/feeds_ui.admin.inc \theme_feeds_ui_plugin_form()
  3. 7 feeds_ui/feeds_ui.admin.inc \theme_feeds_ui_plugin_form()

Theme feeds_ui_plugin_form().

File

feeds_ui/feeds_ui.admin.inc, line 472
Contains all page callbacks, forms and theming functions for Feeds administrative pages.

Code

function theme_feeds_ui_plugin_form($variables) {
  $form = $variables['form'];
  $output = '';
  foreach (element_children($form['plugin_key']) as $key) {

    // Assemble container, render form elements.
    $container = array(
      'title' => $form['plugin_key'][$key]['#title'],
      'body' => isset($form['plugin_key'][$key]['#description']) ? $form['plugin_key'][$key]['#description'] : '',
    );
    $form['plugin_key'][$key]['#title'] = t('Select');
    $form['plugin_key'][$key]['#attributes']['class'] = array(
      'feeds-ui-radio-link',
    );
    unset($form['plugin_key'][$key]['#description']);
    $container['actions'] = array(
      drupal_render($form['plugin_key'][$key]),
    );
    $output .= theme('feeds_ui_container', array(
      'container' => $container,
    ));
  }
  $output .= drupal_render_children($form);
  return $output;
}