function theme_patterns_form_helper in Patterns 6.2
Same name and namespace in other branches
- 5 patterns.module \theme_patterns_form_helper()
- 6 patterns.module \theme_patterns_form_helper()
- 7.2 theme/theme.inc \theme_patterns_form_helper()
- 7 theme/theme.inc \theme_patterns_form_helper()
1 theme call to theme_patterns_form_helper()
File
- ./
patterns.module, line 2279 - Enables extremely simple adding/removing features to your site with minimal to no configuration
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;
}