/[drupal]/contributions/modules/taxonomy_hide/taxonomy_hide.module
ViewVC logotype

Diff of /contributions/modules/taxonomy_hide/taxonomy_hide.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.8, Fri Aug 3 16:35:01 2007 UTC revision 1.9, Fri Aug 3 16:56:58 2007 UTC
# Line 1  Line 1 
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().
# Line 8  function taxonomy_hide_menu($may_cache) Line 8  function taxonomy_hide_menu($may_cache)
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',
# Line 26  function taxonomy_hide_menu($may_cache) Line 26  function taxonomy_hide_menu($may_cache)
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    
# Line 36  function taxonomy_hide_help($section) { Line 36  function taxonomy_hide_help($section) {
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 &gt; Site configuration &gt; 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 &gt; Site configuration &gt; Taxonomy hide</a>.</li></ul>',
41        );          array('@admin' => url('admin/settings/taxonomy_hide')));
42        break;        break;
43    }    }
44    

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.2