function views_ui_pre_render_add_fieldset_markup

cis7 admin.inc views_ui_pre_render_add_fieldset_markup($form)
cle7 admin.inc views_ui_pre_render_add_fieldset_markup($form)
elmsmedia7 admin.inc views_ui_pre_render_add_fieldset_markup($form)
icor7 admin.inc views_ui_pre_render_add_fieldset_markup($form)
meedjum_blog7 admin.inc views_ui_pre_render_add_fieldset_markup($form)
mooc7 admin.inc views_ui_pre_render_add_fieldset_markup($form)

Move form elements into fieldsets for presentation purposes.

Many views forms use #tree = TRUE to keep their values in a hierarchy for easier storage. Moving the form elements into fieldsets during form building would break up that hierarchy. Therefore, we wait until the pre_render stage, where any changes we make affect presentation only and aren't reflected in $form_state['values'].

2 string references to 'views_ui_pre_render_add_fieldset_markup'
views_handler::options_form in sites/all/modules/ulmus/views/includes/handlers.inc
Build the options form.
views_plugin::options_form in sites/all/modules/ulmus/views/includes/plugins.inc
Provide a form to edit options for this plugin.

File

sites/all/modules/ulmus/views/includes/admin.inc, line 1857
Provides the Views' administrative interface.

Code

function views_ui_pre_render_add_fieldset_markup($form) {
  foreach (element_children($form) as $key) {
    $element = $form[$key];
    // In our form builder functions, we added an arbitrary #fieldset property
    // to any element that belongs in a fieldset. If this form element has that
    // property, move it into its fieldset.
    if (isset($element['#fieldset']) && isset($form[$element['#fieldset']])) {
      $form[$element['#fieldset']][$key] = $element;
      // Remove the original element this duplicates.
      unset($form[$key]);
    }
  }

  return $form;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.