| 1 |
<?php |
<?php |
| 2 |
// $Id: taxonomy_hide.module,v 1.7 2007/08/03 16:29:37 davidlesieur Exp $ |
// $Id: taxonomy_hide.module,v 1.8 2007/08/03 16:35:01 davidlesieur Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* Implementation of hook_menu(). |
* Implementation of hook_menu(). |
| 8 |
$items = array(); |
$items = array(); |
| 9 |
if ($may_cache) { |
if ($may_cache) { |
| 10 |
$items[] = array( |
$items[] = array( |
| 11 |
'path' => 'admin/build/taxonomy_hide', |
'path' => 'admin/settings/taxonomy_hide', |
| 12 |
'title' => t('Taxonomy hide'), |
'title' => t('Taxonomy hide'), |
| 13 |
'description' => t('Hide and group vocabulary terms in node views.'), |
'description' => t('Hide and group vocabulary terms in node views.'), |
| 14 |
'callback' => 'drupal_get_form', |
'callback' => 'drupal_get_form', |
| 26 |
function taxonomy_hide_help($section) { |
function taxonomy_hide_help($section) { |
| 27 |
$output = ''; |
$output = ''; |
| 28 |
switch ($section) { |
switch ($section) { |
| 29 |
case 'admin/build/taxonomy_hide': |
case 'admin/settings/taxonomy_hide': |
| 30 |
$output = t('The taxonomy_hide module allows you to hide and group vocabulary terms in node views.'); |
$output = t('The taxonomy_hide module allows you to hide and group vocabulary terms in node views.'); |
| 31 |
break; |
break; |
| 32 |
|
|
| 36 |
'<p>When you view a node, you usually see all vocabulary terms it is associated with. Sometimes, you might want to hide terms of a specific vocabulary. This module allows you to specify the vocabularies whose terms are never displayed in node views.</p>'. |
'<p>When you view a node, you usually see all vocabulary terms it is associated with. Sometimes, you might want to hide terms of a specific vocabulary. This module allows you to specify the vocabularies whose terms are never displayed in node views.</p>'. |
| 37 |
'<p>The list of vocabulary terms is usually sorted first by vocabulary weight, and next alphabetically. So terms of different vocabularies with the same weight are mixed. This module allows you to group terms by vocabulary in node views, which means that all terms of one vocabulary are always next to each other.</p>'. |
'<p>The list of vocabulary terms is usually sorted first by vocabulary weight, and next alphabetically. So terms of different vocabularies with the same weight are mixed. This module allows you to group terms by vocabulary in node views, which means that all terms of one vocabulary are always next to each other.</p>'. |
| 38 |
'<p>You can</p>'. |
'<p>You can</p>'. |
| 39 |
'<ul><li>Specify vocabularies whose terms will be hidden at !admin</li><li>Enable grouping of vocabulary terms at !admin</li></ul>', |
'<ul><li>Specify vocabularies whose terms will be hidden at <a href="@admin">Administer > Site configuration > Taxonomy hide</a>.</li>'. |
| 40 |
array('!admin' => l('administer >> settings >> taxonomy_hide', 'admin/settings/taxonomy_hide')) |
'<li>Enable grouping of vocabulary terms at <a href="@admin">Administer > Site configuration > Taxonomy hide</a>.</li></ul>', |
| 41 |
); |
array('@admin' => url('admin/settings/taxonomy_hide'))); |
| 42 |
break; |
break; |
| 43 |
} |
} |
| 44 |
|
|