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
WTF
Fix for Fix for Code
November 6, 2011 - 10:24am — Anonymous
/**
* Implementation of hook_block().
*/
function
myhomepage_block
(
$op
=
'list'
,
$delta
=
0
)
{
// Initialise idiotic MVC controller every time this hook fires, which may be
// hundreds
WTF
Read more
Fix for Code
November 6, 2011 - 10:21am — Anonymous
/**
* Implementation of hook_block().
*/
function
myhomepage_block
(
$op
=
'list'
,
$delta
=
0
)
{
// initialise controller
$model
=
'MyHomepage'
;
$controller
=
'MVCHandlerController_'
.
WTF
Read more
submission_nodeapi
June 28, 2010 - 3:13pm — Anonymous
case
'presave'
:
// We enforce this to avoid rejected nodes being published
if
(
isset
(
$node
-
>
{
FIELD_JUST
}
)
&&
!
empty
(
$node
-
>
{
FIELD_JUST
}
[
0
]
[
'value'
]
)
)
{
$node
-
>
status
=
0
;
WTF
Read more
small patch breaking includes
March 1, 2010 - 2:20am — Anonymous
===================================================================
RCS
file
:
/
cvs
/
drupal-contrib
/
contributions
/
modules
/
rules
/
rules
/
Attic
/
rules.api.php,v
retrieving revision 1.1.2.9
diff -u -p -r1.
WTF
Read more
insane version_extra_delta releases
January 29, 2010 - 11:44pm — Anonymous
mysql
>
SELECT
version
, nid, pid FROM project_release_nodes WHERE version_extra_delta
>
=
20
;
+-----------------+--------+--------+
|
version
|
nid
|
pid
|
+-----------------+--------+-
WTF
Read more
version_extra_delta on d.o
January 29, 2010 - 11:41pm — Anonymous
mysql
>
SELECT version_extra_delta,
COUNT
(
*
)
FROM project_release_nodes GROUP BY version_extra_delta;
+---------------------+----------+
|
version_extra_delta
|
COUNT
(
*
)
|
+---------------------+---
WTF
Read more
Order of calls to hook_order
May 12, 2009 - 5:12am — Anonymous
load
total
submit
load
total
load
total
can_update
update
load
total
total
total
huh
ubercart WTF
WTF
wtf
April 23, 2009 - 4:18pm — Anonymous
$item
=
array
(
)
;
$item
[
'data'
]
=
'test'
;
if
(
isset
(
$item
[
'data'
]
[
'description'
]
)
)
{
print
"set"
;
}
else
{
print
"unset"
;
}
WTF
Fix for views sql for node reference/relationship reference
January 25, 2009 - 8:48pm — Anonymous
SELECT
node
.
nid
AS
nid
,
node
.
title
AS
node_title
,
node_node_data_field_location_node__location
.
latitude
AS
node_node_data_field_location_node__location_latitude
,
node_node_data_field_location_node__lo
location
nodereference
views
WTF
Read more