DrupalBin
Submit Code
About
Recent Posts
Serializable closures
Closures in menu item arguments
dpr($content['field_headshot'])
Fix for Git push error
Проверка
Code
$item['title'] = $item['title'];
Loading specific field
expire give non-aliased paths
Fix for 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
theme
How theme variables work
April 16, 2012 - 7:00am —
burningdog
//in win.module
<?php
/*
* Implementation of hook_preprocess_node
*/
function
win_preprocess_node
(
&
$variables
)
{
switch
(
$variables
[
'node'
]
-
>
type
)
{
//Win a Prize
case
'win_prize
theme
Read more
Fancybox
February 23, 2012 - 10:14pm — Anonymous
function
zen_preprocess_node
(
&
$variables
,
$hook
)
{
// Add $unpublished variable.
$variables
[
'unpublished'
]
=
(
!
$variables
[
'status'
]
)
?
fancybox
jquery
theme
Read more
Fix for Node template with jquery ui tabs
November 14, 2011 - 9:33am — Anonymous
<?php
if
(
$teaser
==
true
)
:
?>
<div id="node-
<?php
print
$node
-
>
nid
;
?>
" class="node
<?php
print
$node_classes
;
?>
">
<h2 class="title"><a href="
<?php
print
$node_url
?>
" title="
<?php
print
$title
?>
"
jqueryui
node template
tabs
theme
Read more
Looking to create a custom pager
September 27, 2011 - 5:32pm — Anonymous
Guys i
'm looking to make some changes to the default pager that is being generated by my view called frontpage.
omega
pager
theme
views
Read more
Fix for Node template with jquery ui tabs
August 11, 2011 - 9:37pm — Anonymous
<?php
if
(
$teaser
==
true
)
:
?>
<div id="node-
<?php
print
$node
-
>
nid
;
?>
" class="node
<?php
print
$node_classes
;
?>
">
<h2 class="title"><a href="
<?php
print
$node_url
?>
" title="
<?php
print
$title
?>
"
jqueryui
node template
tabs
theme
Read more
Drupal 6 equivalent of stylesheets-override[]
August 8, 2011 - 7:30pm —
sun
function
phptemplate_preprocess_page
(
&
$vars
)
{
// Override system.css with theme version, but keep its position.
// So much to stylesheets-override[] .info property being needless...
// @see
d6
Drupal 6
DrupalWTF
override
stylesheets
theme
theming
Read more
Fix for Using jquery cycle and lightbox in node tempalte using image field images
June 29, 2011 - 10:02pm — Anonymous
<?php
drupal_add_js
(
path_to_theme
(
)
.
'/jquery.cycle.js'
,
'theme'
)
;
drupal_add_js
(
"
$(document).ready(function(){
$('#photos').cycle({
fx: 'fade',
speed: 2500,
t
imagefield
jquery
theme
Read more
Simplenews email with links to attachments
June 22, 2011 - 1:43pm — Anonymous
// This code allows one to override the default email output generated by the Simple News module.
// This was specifically designed to allow for the inclusion of links for attachments, as the default
override
simplenews module
theme
Read more
Fix for Simplenews email with links to attachments
June 22, 2011 - 1:42pm — Anonymous
// This code allows one to override the default email output generated by the Simple News module.
// This was specifically designed to allow for the inclusion of links for attachments, as the default
override
simplenews module
theme
Read more
Fix for Node template with jquery ui tabs
June 8, 2011 - 6:50am — Anonymous
<?php
if
(
$teaser
==
true
)
:
?>
<div id="node-
<?php
print
$node
-
>
nid
;
?>
" class="node
<?php
print
$node_classes
;
?>
">
<h2 class="title"><a href="
<?php
print
$node_url
?>
" title="
<?php
print
$title
?>
"
jqueryui
node template
tabs
theme
Read more
1
2
3
4
5
6
7
8
9
next ›
last »