--- taxonomy_context.module.4.6 2006-01-19 17:38:05.353751465 +0100 +++ taxonomy_context.module 2006-01-19 17:43:27.872744749 +0100 @@ -496,7 +496,16 @@ return; } - $block["subject"] = $vocabs[$delta]->name; + $block["subject"] = ""; + switch (variable_get("taxonomy_context_block_header", 1)) { + case "1": + $block["subject"] = $vocabs[$delta]->name; // the vocabulary as header + break; + case "2": + $trmobj=taxonomy_get_term($context->root_tid); // the parent term as header + $block["subject"] = $trmobj->name; + break; + } $block["content"] = "
" . taxonomy_context_show_children($context->root_tid, true) . "
\n"; return $block; } @@ -550,6 +559,11 @@ array(t("Disabled"), t("Enabled")), t("Enable this setting if you wish the context block to show only nodes that are promoted to the front page.")); + $output .= form_select( + t("Show block subject header"), + "taxonomy_context_block_header", variable_get("taxonomy_context_block_header", 1), + array(t("Disabled"), t("Vocabulary"), t("Parent term")), + t("Either show as block subject the vocabulary (default), the vocabulary's parent term of the context or disable the subject header all together")); $vocabs = array(0 => "none"); $vocabularies = taxonomy_get_vocabularies(); foreach ($vocabularies as $v) {