DrupalBin
Submit Code
About
Recent Posts
TwitterFeed for D4D review
text
rewrite
Module to overrule the save settings of the "new node" form
Code
apidoc
Empty DateTime Object
Fix for listcars_manufacturer.module
listcars_manufacturer.info
listcars_manufacturer.module
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
php
block node visibility
August 10, 2010 - 3:34pm — Anonymous
<?php
if
(
arg
(
0
)
==
'user'
&&
arg
(
1
)
==
$user
-
>
uid
)
{
return
true
;
}
?>
arguments
block
php
visibility
Blow, Blow, Thou Winter Wind – by Shakespeare
June 29, 2010 - 6:46am — Anonymous
<?php
/**
* Blow, Blow, Thou Winter Wind.
*
* Blow, blow, thou winter wind,
* Thou art not so unkind
* As man's ingratitude;
* Thy tooth is not so keen
* Because thou art not seen,
*
php
poem
shakespeare
Read more
test php
June 22, 2010 - 12:54pm — Anonymous
<?php
echo
"Hello World"
;
?>
php
test
June 1, 2010 - 1:08pm — Anonymous
<?php
test123232
?>
<?
..
/
..
<?
glglglglgkgkhkhkhkhkhkhkhkhkhkh
php
Testing
May 5, 2010 - 8:07am — Anonymous
This is some php code
<?php
abstract
class
testing
{
public
function
__construct
(
)
{
}
}
?>
php
Fix for if image is there show it but if video is there, hide the image
March 15, 2010 - 2:08am — Anonymous
<?php
$video
=
$node
-
>
field_hero_video
[
0
]
[
'view'
]
;
?>
<div class="art-Post">
<div class="art-Post-body">
<div class="art-Post-inner">
<h2 class="art-PostHeader">
<?php
echo
art_node_title_out
php
Read more
if image is there show it but if video is there, hide the image
March 15, 2010 - 2:01am — Anonymous
<div class="art-Post">
<div class="art-Post-body">
<div class="art-Post-inner">
<h2 class="art-PostHeader">
<?php
echo
art_node_title_output
(
$title
,
$node_url
,
$page
)
;
?>
</h2>
<div>
<?php
pri
php
Read more
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
1
2
3
4
5
next ›
last »