You are here

function theme_feeds_ui_plugin_form in Feeds 6

Same name and namespace in other branches
  1. 8.2 feeds_ui/feeds_ui.admin.inc \theme_feeds_ui_plugin_form()
  2. 7.2 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 453
Contains all page callbacks, forms and theming functions for Feeds administrative pages.

Code

function theme_feeds_ui_plugin_form($form) {
  drupal_add_js(drupal_get_path('module', 'feeds_ui') . '/feeds_ui.js');
  $output = '';
  foreach (element_children($form['plugin_key']) as $key) {

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