DrupalBin
Submit Code
About
Recent Posts
Fix for Code
5 hours 16 min
ago
Fix for Code
5 hours 17 min
ago
Code
5 hours 22 min
ago
whole thing
6 hours 14 min
ago
more
Tags
CCK
drupal
fapi
jquery
menu
module
Panels
php
simpletest
test
theme
views
more tags
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Create new account
Request new password
Log in using OpenID
Cancel OpenID login
Home
hierarchical-select
Code
November 30, 2008 - 8:21pm —
Wim Leers
/**
* Helper function to reconstruct the lineages given a set of selected items
* and the fact that the "save lineage" setting is enabled.
*
hierarchical-select
Add new comment
Read more
The Most Monstrous Function Ever
November 30, 2008 - 8:19pm —
Wim Leers
/**
* Hierarchical select form element type #process callback.
*/
function
hierarchical_select_process
(
$element
)
{
static
$hsid
;
if
(
!
isset
(
$hsid
)
)
{
$hsid
=
0
;
}
else
{
hierarchical-select
Add new comment
Read more
HS demo cleanup
September 19, 2008 - 9:42am — Anonymous
/**
* Implementation of hook_cron().
*/
function
hsdemo_cron
(
)
{
$last_cleanup
=
variable_get
(
'hsdemo_last_cleanup'
,
0
)
;
$delta
=
7200
;
// 2 hours.
hierarchical-select
Read more
With inline comments this time!
September 18, 2008 - 8:20am —
Wim Leers
/**
* Definition of our hierarchy.
*/
function
hs_tutorial_hierarchy
(
)
{
static
$internal_hierarchy
;
// The user-visible hierarchy. Only defines labels. Has 3 levels.
hierarchical-select
Read more
Code
September 18, 2008 - 8:08am —
Wim Leers
/**
* Definition of our hierarchy.
*/
function
hs_tutorial_hierarchy
(
)
{
static
$internal_hierarchy
;
// The user-visible hierarchy. Only defines labels. Has 3 levels.
hierarchical-select
Read more
Code
May 18, 2008 - 2:51pm —
Wim Leers
/**
* Implementation of hook_requirements().
*/
function
hs_views_taxonomy_requirements
(
$phase
)
{
$requirements
=
array
(
)
;
if
(
$phase
==
'runtime'
)
{
$pattern
= <<<EOT
hierarchical-select
views
Read more
Code
May 18, 2008 - 9:43am —
Wim Leers
$config
=
array
(
'config_id'
=>
'taxonomy-1'
,
'save_lineage'
=>
1
,
'enforce_deepest'
=>
0
,
'node_count'
=>
1
,
'level_labels'
=>
array
(
'status'
=>
1
,
hierarchical-select
Read more
Hierarchical Select example
May 12, 2008 - 8:18am —
Wim Leers
$form
[
'select_some_term'
]
=
array
(
'#type'
=>
'hierarchical_select'
,
'#title'
=>
t
(
'Select the tag you wish to use.'
)
,
'#config'
=>
array
(
'module'
=>
'taxonomy'
,
hierarchical-select
Read more
AHAH callback in Drupal 5
April 10, 2008 - 3:54pm —
Wim Leers
<?php
/**
* Menu callback; format=text/json; generates and outputs the appropriate HTML.
*/
function
hierarchical_select_json
(
)
{
hierarchical-select
Read more
vocabselect - a Hierarchical Select implementation
April 9, 2008 - 5:03pm —
Wim Leers
<?php
// $Id$
/**
* @file
* Puts a configurable list of vocabularies in the first select of a
* Hierarchical Select, and allows to select a term beneath that.
*/
hierarchical-select
Read more
1
2
next ›
last »