'. $text .'
';
}
/**
* Theme a heading.
* @param $text: the text to be included in the heading. Not translated here.
* @param $level: the level of the heading (1 - 6).
* @param $attributes: Optional attributes.
* @return themed heading.
*/
function theme_heading($text, $level = 2, $attributes = array()) {
if ($level > 6 || $level < 1) {
drupal_set_message(t('Invalid heading level requested (@level).', array('@level' => $level)), 'error');
$level = 6;
}
return "';
if (isset($title)) {
$output .= '
'. ($filter ? check_plain($title) : $title) .'
';
}
if (!empty($items)) {
$output .= "
";
foreach ($items as $item) {
if (is_string($item['term'])) {
$output .= ' - '. ($filter ? check_plain($item['term']) : $item['term']) .'
';
}
elseif (is_array($item['term'])) {
foreach ($item['term'] as $term) {
$output .= ' - '. ($filter ? check_plain($term) : $term) ."
\n";
}
}
if (is_string($item['definitions'])) {
$output .= ' - '. ($filter ? filter_xss($item['definitions']) : $item['definitions']) .'
';
}
elseif (is_array($item['definitions'])) {
foreach ($item['definitions'] as $definition) {
$output .= ' - '. ($filter ? filter_xss($definition) : $definition) ."
\n";
}
}
}
$output .= "
";
}
$output .= '
';
return $output;
}
/**
* Return a themed name and value as a DT DD pair.
* @param $name
* The name string.
* @param $value
* The value string.
* @param $filter
* Bool passed on to definition list.
*/
function theme_name_and_value_pair($name, $value, $filter = TRUE) {
//simple version: return "