DrupalBin
Submit Code
About
Recent Posts
What is this?
display suite field group
Code
Code
Code
Code
Fix for UC Node Checkout - Base Product Title into Token
Code
Import a content type from a file.
Alteration to Trying to alter contact form to allow pre-selecting of cid
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
update
Fix for Updating a nodereference CCK field using node_save()
April 25, 2010 - 7:29pm —
sepehr
...
// Getting current reference delta.
$current_delta
=
db_query
(
"SELECT delta FROM {content_field_movie_node_ref}
WHERE vid = '%d'
ORDER BY delta DESC
LIMIT 1"
,
$existing_movie
-
CCK
nodereference
update
Read more
Updating a nodereference CCK field using node_save()
April 23, 2010 - 6:34pm —
sepehr
...
// Getting movie node.
$existing_movie_node
=
node_load
(
$existing_movie
-
>
nid
)
;
// "Appending" a node reference.
$existing_movie_node
-
>
field_movie_node_ref
[
]
[
'nid'
]
=
$drupal_subtitle_no
CCK
nodereference
update
Read more
Fix for TestCase not listed
September 23, 2009 - 3:57am — Anonymous
Alter simpletest.info and add dependency to update.test
<?php
files
[
]
= tests
/
update.test
?>
update
TestCase not listed
September 23, 2009 - 3:15am — Anonymous
<?php
// $Id$
/**
* @file
* Tests for update.inc.
*/
/**
* Unit tests for the module API.
*/
class
UpdateIncTestCase
extends
DrupalWebTestCase
{
public
static
function
getInfo
(
)
{
update
Read more
Update function
May 5, 2009 - 2:46pm — Anonymous
function
blah_migration_update_6000
(
&
$sandbox
)
{
$ret
=
array
(
)
;
module_load_include
(
'inc'
,
'install_profile_api'
,
'core/menu'
)
;
include
install profile api
update
Read more