Posted by crea on February 3, 2010 at 6:27am
Hierarchical Select implementation allowing to choose content types and their fields in a user-friendly way. Reusable form element.
This is developer module. Install it only when required by other module.
Requirements: Hierarchical Select, CCK
Modules that use Hierarchical Select Field Selector: Imagefield Avatar
This module provides HS implementation ready to use. To insert HS field selector in your form, do something like:
<?php
module_load_include('inc', 'hs_field_selector');
$form['your_field_selector'] = hs_field_selector_form_element();
?>You can filter node types and fields using your own callbacks:
<?php
$params = array('nodetype_filter' => 'your callback', 'field_filter' => 'your callback');
$form['your_field_selector']['#config']['params'] = $params;
?>For example of usage see Imagefield Avatar module.
Also you can read HS API documentation to learn how you can tweak this form element further.
Downloads
Project Information
- Maintenance status: Minimally maintained
- Development status: No further development
- Module categories: Content Construction Kit (CCK), Developer, Utility
- Reported installs: 392 sites currently report using this module. View usage statistics.
- Downloads: 4,166
- Last modified: October 14, 2012