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
5.x
Emfield WTF!
September 13, 2010 - 7:48am — Anonymous
/**
* the embedded flash displaying the Vimeo video
*/
function
theme_video_cck_vimeo_flash
(
$embed
,
$width
,
$height
,
$autoplay
)
{
watchdog
(
'emfield'
,
print_r
(
$embed
,
TRUE
)
)
;
$output
=
''
;
5.x
drupal
emfield
pain
Read more
template.php for D5 theming of UC checkout and cart
September 15, 2009 - 7:40am — Anonymous
/**
* Overriding theme_uc_cart_block_content() to hide
* TOTAL from Wholesalers
*
* Theme the shopping cart block content.
*/
function
phptemplate_uc_cart_block_content
(
)
{
global
$user
5.x
drupal
Forms
tapir
theming
ubercart
Read more
db_rewrite_sql for filtering on CCK type
June 3, 2009 - 9:02am — Anonymous
/**
* Rewrite search query to search only show results where
* the "status" CCK field is "approved"
*/
5.x
6.x
CCK
drupal
search
sql
Read more
Adding stock levels to Add To Cart variations drop-down
April 29, 2009 - 11:20am — Anonymous
/**
* Implementation of hook_form_alter().
*/
function
madebyniki_form_alter
(
$form_id
,
&
$form
)
{
//adding stock levels to add to cart drop down
5.x
drupal
module
stock
ubercart
uc
Read more
phptemplate css code
April 6, 2009 - 11:43am — Anonymous
function
_phptemplate_variables
(
$hook
,
$vars
=
array
(
)
)
{
switch
(
$hook
)
{
case
'page'
:
$css
=
drupal_add_css
(
'sites/all/themes/madebynikki/cmspros.css'
,
'theme'
)
;
5.x
drupal
template.php
theming
Read more
A port of the popular "myform_sample" multiplication forms API
December 10, 2007 - 10:03pm — Anonymous
<?php
/**
* A small example module of using the form api
* to display and process a form
* that is not used to extend the basic node content type
*
5.x
myform
myform_sample
Read more