function field_group_pre_render

cis7 field_group.module field_group_pre_render(& $element, $group, & $form)
cle7 field_group.module field_group_pre_render(& $element, $group, & $form)
elmsmedia7 field_group.module field_group_pre_render(& $element, $group, & $form)
icor7 field_group.module field_group_pre_render(& $element, $group, & $form)
meedjum_blog7 field_group.module field_group_pre_render(& $element, $group, & $form)
mooc7 field_group.module field_group_pre_render(& $element, $group, & $form)

Function to pre render the field group element.

Parameters

$element Array of group element that needs to be created!:

$group Object with the group information.:

$form The form object itself.:

See also

field_group_fields_nest()

1 call to field_group_pre_render()
field_group_fields_nest in sites/all/modules/ulmus/field_group/field_group.module
Recursive function to nest fields in the field groups.

File

sites/all/modules/ulmus/field_group/field_group.module, line 2001
Fieldgroup module.

Code

function field_group_pre_render(& $element, $group, & $form) {

  // Only run the pre_render function if the group has elements.
  // $group->group_name
  if ($element == array()) {
    return;
  }

  // Let modules define their wrapping element.
  // Note that the group element has no properties, only elements.
  foreach (module_implements('field_group_pre_render') as $module) {
    $function = $module . '_field_group_pre_render';
    if (function_exists($function)) {
      // The intention here is to have the opportunity to alter the
      // elements, as defined in hook_field_group_formatter_info.
      // Note, implement $element by reference!
      $function($element, $group, $form);
    }
  }

  // Allow others to alter the pre_render.
  drupal_alter('field_group_pre_render', $element, $group, $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.