You are here

function theme_multipage in Field Group 7

Same name and namespace in other branches
  1. 7.2 field_group.module \theme_multipage()

Returns HTML for an element's children fieldsets as multipage.

Parameters

$variables: An associative array containing:

  • element: An associative array containing the properties and children of the fieldset. Properties used: #children.

File

./field_group.module, line 1549
Fieldgroup module.

Code

function theme_multipage($variables) {
  $element = $variables['element'];

  // Add required JavaScript and Stylesheet.
  $element['#attached']['library'][] = array(
    'field_group',
    'multipage',
  );
  $output = '<h2 class="element-invisible">' . (!empty($element['#title']) ? $element['#title'] : t('Multipage')) . '</h2>';
  $output .= '<div class="multipage-panes">';
  $output .= $element['#children'];
  $output .= '</div>';
  return $output;
}