You are here

function theme_patterns_form_helper in Patterns 7.2

Same name and namespace in other branches
  1. 5 patterns.module \theme_patterns_form_helper()
  2. 6.2 patterns.module \theme_patterns_form_helper()
  3. 6 patterns.module \theme_patterns_form_helper()
  4. 7 theme/theme.inc \theme_patterns_form_helper()

@TODO Doc.

Parameters

unknown_type $form_id:

unknown_type $values:

1 theme call to theme_patterns_form_helper()
patterns_exit in includes/unused.inc

File

theme/theme.inc, line 65

Code

function theme_patterns_form_helper($form_id, $values) {
  $output = '<div class="patterns-form" id="patterns-form-' . $form_id . '">';
  $output .= '<div class="patterns-form-title">' . t('Form values for %key', array(
    '%key' => $form_id,
  )) . '</div>';
  foreach ($values as $key => $value) {
    $output .= '<div class="patterns-form-item"><div class="patterns-form-key">' . $key . ' => </div>';
    $output .= '<div class="patterns-form-value">' . print_r($value, TRUE) . '</div></div>';
  }
  $output .= '</div>';
  return $output;
}