/[drupal]/contributions/modules/hierarchical_select/modules/hs_subscriptions_taxonomy.module
ViewVC logotype

Diff of /contributions/modules/hierarchical_select/modules/hs_subscriptions_taxonomy.module

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

revision 1.1, Sat Jun 28 18:25:28 2008 UTC revision 1.2, Tue Jul 1 08:08:44 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: subscriptions_taxonomy.inc,v 1.3 2008/02/03 12:48:15 wimleers Exp $  // $Id: hs_subscriptions_taxonomy.module,v 1.1 2008/06/28 18:25:28 wimleers Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 53  function hs_subscriptions_taxonomy_form_ Line 53  function hs_subscriptions_taxonomy_form_
53          // Finally, make it a Hierarchical Select!          // Finally, make it a Hierarchical Select!
54          $form[$name]['select']['#type'] = 'hierarchical_select';          $form[$name]['select']['#type'] = 'hierarchical_select';
55          $form[$name]['select']['#default_value'] = $selected_tids;          $form[$name]['select']['#default_value'] = $selected_tids;
56          $form[$name]['select']['#hierarchical_select_settings'] = array(          $form[$name]['select']['#config'] = array(
57            'module' => 'taxonomy',            'module' => 'hs_taxonomy',
58            'params' => array(            'params' => array(
59              'vid' => $vocabulary->vid,              'vid' => $vocabulary->vid,
60            ),            ),
61            'save_linage' => FALSE,            'save_lineage'    => 0,
62            'enforce_deepest' => TRUE,            'enforce_deepest' => 1,
63            'dropbox_title' => t('Subscribed to:'),            'level_labels' => array(
64            'dropbox_limit' => 0,              'status' => 0,
65              ),
66              'dropbox' => array(
67                'status'   => $form[$name]['select']['#multiple'],
68                'title'    => t('Subscribed to:'),
69                'limit'    => 0,
70                'reset_hs' => 0,
71              ),
72              'editability' => array(
73                'status' => 0,
74              ),
75          );          );
76        }        }
77      }      }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.2