DrupalBin
Submit Code
About
Recent Posts
Serializable closures
Closures in menu item arguments
dpr($content['field_headshot'])
Fix for Git push error
Проверка
Code
$item['title'] = $item['title'];
Loading specific field
expire give non-aliased paths
Fix for Code
more
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Log in using OpenID
Cancel OpenID login
Create new account
Request new password
Tags
CCK
drupal
fapi
jquery
menu
module
php
simpletest
taxonomy
test
theme
views
more tags
Home
node_save()
Fix for Function to add taxonomy and content_taxonomy to a node object
August 25, 2010 - 1:03pm — Anonymous
// Sample usage:
$node
=
new
StdClass
(
)
;
$node
-
>
type
=
"story"
;
$node
-
>
title
=
"Hello world"
;
$tags
=
array
(
'red'
,
'white'
,
'blue'
)
;
my_nodeobject_add_content_taxonomy
(
&
$node
, 1,
$tags
,
'create'
,
CCK
content_taxonomy
Drupal 6
node_save()
Read more
Function to add taxonomy and content_taxonomy to a node object
August 25, 2010 - 1:01pm — Anonymous
/**
* Modifies a node object adding taxonomy terms and, optionally, modifying a
* content_taxonomy type field.
*
* @param <type> $node
* A node object.
* @param <type> $vid
* The voc
CCK
content_taxonomy
Drupal 6
node_save()
Read more
Problem with node_load() and node_save()
August 11, 2009 - 8:01pm — Anonymous
An example of node and its contents:
------------------------------------------------
nid = '1'
title = 'Node for Test'
body = 'Text of test of the node, this line it must be deleted when modifyin
node_load()
node_save()
Read more