DrupalBin
Submit Code
About
Recent Posts
Code
Fix for Fix for Code
Fix for Code
Code
Node type whitelist
an axe coach accessories
coach purses married
Fix for de las ghd alturas
de las ghd alturas
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
rules
Fix for Adding globally available data to Rules
November 10, 2011 - 12:08pm — Anonymous
function
jmm_suspect_words_entity_property_info_alter
(
&
$items
)
{
$items
[
'site'
]
[
'properties'
]
[
'suspected'
]
=
array
(
'label'
=>
t
(
'Suspected words'
)
,
'getter callback'
=>
'jmm_suspect_word
rules
Read more
Adding globally available data to Rules
November 8, 2011 - 11:43am — Anonymous
function
rules_entity_property_info_alter
(
&
$items
)
{
$items
[
'site'
]
[
'properties'
]
[
'suspected'
]
=
array
(
'label'
=>
t
(
'Suspected words'
)
,
'getter callback'
=>
'myfunction'
,
'type'
=>
rules
Read more
rules debugging
October 27, 2011 - 5:10pm — Anonymous
0 ms "A node has been unflagged, under "Update Child Profile"" has been invoked.
0.076 ms Executing the rule "Update a child profile" on rule set "A node has been unflagged, under "Update Child Profi
rules
Read more
Fix for Can't set the $node->menu["parent"] when saving new content
December 23, 2010 - 6:32am — Anonymous
$node
-
>
menu
[
"link_title"
]
=
$node
-
>
title
;
$node
-
>
menu
[
"hidden"
]
=
1
;
$node
-
>
menu
[
"parent"
]
=
"menu-mymenu:0"
;
// this doesn't work ( i created before a menu "mymenu" )
return
array
(
"node"
=
>
$node
rules
Read more
Fix for change CCK field path in Rules when node is saved - use Custom PHP
August 14, 2010 - 8:07pm — Anonymous
I put my own queries into the Custom PHP field
//this is the path to the actual uploaded to pass to the encoding.com script
$_SESSION
[
'videoup'
]
=
'[node:field_video-filefield-filepath]'
;
//upd
CCK
encoding.com
rules
Read more
change CCK field path in Rules when node is saved to receive the encoding.com transcoded file - doesn't change path
August 14, 2010 - 12:57pm — Anonymous
return
array
(
0 =
>
array
(
'fid'
=
>
'[node:field_video-filefield-fid]'
,
'filepath'
=
>
'sites/default/files/transcoded/[node:field_video-filefield-filename].flv'
)
,
)
;
CCK
encoding.com
rules
Fix for Fix for cURL script does not work in Rules Custom PHP Action - set $_SESSION var and redirect to page with the script
August 14, 2010 - 12:34pm — Anonymous
in Rules, set a session
var
to the filepath of the uploaded video in Execute custom PHP
eg
$_SESSION
[
'uploaded_video'
]
=
'[node:field_video-filefield-filepath]'
;
then put the cURL script in the
cURL
rules
Read more
Fix for cURL script does not work in Rules Custom PHP Action - set $_SESSION var and redirect to page with the cURL script
August 14, 2010 - 12:29pm — Anonymous
in Rules, set a session
var
to the filepath of the uploaded video in Execute custom PHP code
!
REG3XP1
!
>
eg
$_SESSION
[
'uploaded_video'
]
=
'[node:field_video-filefield-filepath]'
;
then put the cURL script in
cURL
rules
Read more
cURL script does not work in Rules Custom PHP Action, works fine in Devel Execute PHP or as file
August 12, 2010 - 11:04am —
decibel.places
function
sendRequest
(
$adixml
)
{
$adich
= curl_init
(
)
;
curl_setopt
(
$adich
, CURLOPT_URL,
"http://manage.encoding.com/"
)
;
curl_setopt
(
$adich
, CURLOPT_POSTFIELDS,
"xml="
.
cURL
rules
Read more
Fix for Custom php code for setting ubercart sales_price via rules
June 10, 2010 - 1:09pm — Anonymous
$nid
=
[
node:nid
]
;
$seminarNID
=
$node
-
>
field_seminar_id
[
0
]
[
'nid'
]
;
$seminarNode
=
node_load
(
$seminarNID
)
;
$sell_price
=
(
$node
-
>
field_class_revenue
[
0
]
[
'value'
]
)
/
(
$seminarNode
-
>
field_participants
[
rules
ubercart
Read more
1
2
next ›
last »