| 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 |
| 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 |
} |
} |