DrupalBin
Submit Code
About
Recent Posts
Code
1 hour 49 min
ago
Fix for Code
1 hour 59 min
ago
d5, hook_comment, trying to force an input filter format
5 hours 17 min
ago
haha
5 hours 51 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
terms
Batch processing the insert of vocabulary terms.
October 24, 2008 - 8:50pm — Anonymous
foreach
(
$filesArray
as
$fileName
)
{
//This opens up the file
$xml
=
file_get_contents
(
$dirLoc
.
$fileName
)
;
//This creates the simple xml object
batch
insert
terms
vocabulary
Add new comment
Read more
Show node parent terms
March 15, 2008 - 8:28pm — Anonymous
<?php
// split out taxonomy terms by parent
function
bowwowtheme_liquid_print_terms
(
$nid
)
{
$terms
= taxonomy_node_get_terms
(
$nid
)
;
$links
=
array
(
)
;
$processed
=
array
(
)
;
if
(
$terms
)
{
parent
taxonomy
terms
Read more