function views_fieldsets_form_views_ui_edit_display_form_alter in Views fieldsets 7.2
Implements hook_form_views_ui_edit_display_form_alter().
File
- ./
views_fieldsets.module, line 369 - Hooks, helpers and theming for the Views Fieldsets module.
Code
function views_fieldsets_form_views_ui_edit_display_form_alter(&$form, &$form_state) {
$view = $form_state['view'];
if ($form_state['section'] == 'analyze-theme') {
$funcs = array();
foreach (array(
'fieldset',
'div',
'details',
) as $tag) {
$theme_hook_suggestions = views_theme_functions('views_fieldsets_' . $tag, $view, $view->display_handler->display);
$funcs[] = $view->display_handler
->option_link(t('Views fieldsets @tag', array(
'@tag' => '<' . $tag . '>',
)), 'analyze-theme-fieldsets-' . $tag) . ': ' . $view->display_handler
->format_themes($theme_hook_suggestions);
}
$html = theme('item_list', array(
'items' => $funcs,
));
$form['options']['analysis']['#markup'] .= $html;
}
}