DrupalBin
Submit Code
About
Recent Posts
Fix for Allow HTML in <i> node titles</i> for Drupal 6.x
Template Pre-proccessing
Testing Ubercart donation product
dave's menu screenshot
Code
Modify user profile page theme
Modify user profile page
Fix for Fix for Code
Fix for Code
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
test
theme
user
views
more tags
Home
node_load
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