DrupalBin
Submit Code
About
Recent Posts
Code
Fix for Close button for views
Close button for views
Code
Code
Code
results
hook_view and hook_insert
KITTENS ZOMG
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
Panels
simpletest
test
theme
user
views
more tags
Home
php
WSOD error from menu_execute_active_handler() - on homepage (using Panels
February 17, 2010 - 2:07pm — Anonymous
menu_execute_active_handler
(
)
: returned
NULL
- it
's very bad!
WSOD detected!
ctools
error
fatal
menu_execute_active_handler
menu_rebuild
mysql
Panels
php
watchdog
wsod
Read more
PHP code put into views repeats for all users on site, opposed to just being displayed once
January 21, 2010 - 10:47pm — Anonymous
<?php
global
$user
;
$rtid
=
1
;
//Relationship type ID.
$max
=
1
;
//The amount of users to show on the block.
$user_rel
=
db_query
(
"
SELECT u.uid
FROM {users} u
LEFT JOIN {user_relationships}
php
views
Read more
printing a list, instead of a table header
November 30, 2009 - 4:25pm —
honu
function
honu_preprocess_forum_topic_list
(
&
$variables
)
{
global
$forum_topic_list_header
;
// Create the tablesorting header.
$ts
=
tablesort_init
(
$forum_topic_list_header
)
;
$header
=
''
;
php
theme_item_list
Read more
printing a list, instead of a table header
November 30, 2009 - 4:21pm —
honu
function
honu_preprocess_forum_topic_list
(
&
$variables
)
{
global
$forum_topic_list_header
;
// Create the tablesorting header.
$ts
=
tablesort_init
(
$forum_topic_list_header
)
;
$header
=
''
;
php
theme_item_list
Read more
PHP help, printing a list instead of a table
November 30, 2009 - 3:45pm —
honu
function
template_preprocess_forum_topic_list
(
&
$variables
)
{
global
$forum_topic_list_header
;
// Create the tablesorting header.
$ts
=
tablesort_init
(
$forum_topic_list_header
)
;
$header
=
List
php
theme
_theme_table_cell
Read more
update.php
November 27, 2009 - 8:12am — Anonymous
<?php
// $Id: update.php,v 1.252.2.3 2009/03/30 11:15:11 goba Exp $
/**
* @file
* Administrative page for handling updates from one Drupal version to another.
*
* Point your browser to "ht
php
php javascript
Read more
sdfsf
November 7, 2009 - 8:52pm — Anonymous
<?php
phpinfo
(
)
;
?>
php
Example Block Filter
October 25, 2009 - 11:45pm — Anonymous
<?php
$match
=
FALSE
;
$url
=
request_uri
(
)
;
$types
=
array
(
'mycontenttype'
=
>
1
)
;
if
(
arg
(
0
)
==
'node'
&&
is_numeric
(
arg
(
1
)
)
)
{
$nid
=
arg
(
1
)
;
$node
=
node_load
(
array
(
'nid'
=
>
$nid
)
)
;
$ty
block
filter
php
Read more
Hey
October 16, 2009 - 10:00pm — Anonymous
fffffff
php
jfhsdkjfahkjsd fkjahskjdfhajks
June 26, 2009 - 12:23am — Anonymous
<?php
/* A simple php script */
$choice
=
$_GET
[
'foo'
]
;
if
(
$choice
==
1
)
{
echo
'You like coffee!'
;
}
elseif
(
$choice
==
2
)
{
echo
'I said, "You like coffee!"'
;
}
echo
"<br /
php
Read more
1
2
3
4
next ›
last »