function theme_feeds_ui_plugin_form in Feeds 7
Same name and namespace in other branches
- 8.2 feeds_ui/feeds_ui.admin.inc \theme_feeds_ui_plugin_form()
- 6 feeds_ui/feeds_ui.admin.inc \theme_feeds_ui_plugin_form()
- 7.2 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($variables) {
$form = $variables['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' => 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;
}