DrupalBin
Submit Code
About
Recent Posts
TwitterFeed for D4D review
text
rewrite
Module to overrule the save settings of the "new node" form
Code
apidoc
Empty DateTime Object
Fix for listcars_manufacturer.module
listcars_manufacturer.info
listcars_manufacturer.module
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
test
theme
user
views
more tags
Home
node_save
arsing stupid taxonomy caching bollocks, wtf?!
October 1, 2009 - 3:28pm — Anonymous
// existing article, we only need to add category
$existing_story_node
=
node_load
(
$result
,
NULL
,
TRUE
)
;
// prepare categories, loading existing taxonomy data first
drupal
node_save
pissant
taxonomy
Read more
Fix for Fix for Why doesn't node_save work in this simple example?
September 3, 2009 - 12:26pm — Anonymous
<?php
require
'includes/bootstrap.inc'
;
drupal_bootstrap
(
DRUPAL_BOOTSTRAP_FULL
)
;
$node
=
node_load
(
11
)
;
$node
-
>
title
=
"My New Title"
;
//node_submit processes form input to create real node
node_save
Read more
Fix for Why doesn't node_save work in this simple example?
April 16, 2009 - 11:02am — Anonymous
<?php
require
'includes/bootstrap.inc'
;
drupal_bootstrap
(
DRUPAL_BOOTSTRAP_FULL
)
;
$node
=
node_load
(
11
)
;
$node
-
>
title
=
"My New Title"
;
node_submit
(
$node
)
;
node_save
(
$node
)
;
?>
node_save
Fix for Create a Node from a another Mysql DB Data
April 14, 2009 - 8:55am — Anonymous
<?php
//exec("/usr/bin/clear");
include_once
(
'includes/bootstrap.inc'
)
;
drupal_bootstrap
(
DRUPAL_BOOTSTRAP_FULL
)
;
bootstrap_invoke_all
(
'init'
)
;
ini_set
(
'memory_limit'
,
'512M'
)
;
CCK
import
mysql
node_save
Read more
Trying to make this code do the equivalent of clicking "edit" and "save" on the indicated node. Help?
February 21, 2009 - 10:23pm — Anonymous
<?php
// Bootstrap Drupal
require
'includes/bootstrap.inc'
;
drupal_bootstrap
(
DRUPAL_BOOTSTRAP_FULL
)
;
// Attempt the DB query
$node
=
node_load
(
12
)
;
node_save
(
$node
)
;
?>
node_load
node_save
Why doesn't node_save work in this simple example?
February 20, 2009 - 6:02pm — Anonymous
<?php
// Bootstrap Drupal
require
'includes/bootstrap.inc'
;
drupal_bootstrap
(
DRUPAL_BOOTSTRAP_FULL
)
;
// Attempt the DB query
$node
=
db_query
(
"SELECT nid FROM {node} WHERE nid=11"
)
;
node_save
Read more
Create a Node from a another Mysql DB Data
November 13, 2008 - 11:19am — Anonymous
<?php
//exec("/usr/bin/clear");
include_once
(
'includes/bootstrap.inc'
)
;
drupal_bootstrap
(
DRUPAL_BOOTSTRAP_FULL
)
;
bootstrap_invoke_all
(
'init'
)
;
ini_set
(
'memory_limit'
,
'512M'
)
;
CCK
import
mysql
node_save
Read more