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
6.x
Ignition proof-of-concept
August 11, 2011 - 3:59pm — Anonymous
/*
* TODO:
*
* Review this section - this is a proof-of-concept JSON managed config
* exporter.
6.x
deployment
drupal
Read more
LT initial functionality test
April 11, 2011 - 11:11am — Anonymous
<?php
// $Id$
class
LoginTobogganMiscTest
extends
DrupalWebTestCase
{
/**
* Implementation of getInfo().
*/
public
static
function
getInfo
(
)
{
return
array
(
'name'
=
>
t
(
'
6.x
drupal
logintoboggan
SimpleTests
Read more
Broken Panels hook
February 16, 2011 - 12:35pm — Anonymous
function
ignition_default_page_manager_pages
(
)
{
$pages
=
array
(
)
;
dpm
(
'here'
)
;
watchdog
(
'debug'
,
t
(
'In page manager hook'
)
)
;
// Check the include directory.
$path
=
drupal_get_path
(
'mo
6.x
drupal
hook
pages
Panels
Read more
Ctools hook
February 16, 2011 - 12:28pm — Anonymous
/**
* Implementation of hook_ctools_plugin_api().
*
* If you do this, CTools will pick up default panels pages in
* <modulename>.pages_default.inc
*/
function
ignition_ctools_plugin_api
(
$mo
6.x
api
ctools
drupal
hook
Read more
Batch API on installation
January 14, 2011 - 1:08pm — Anonymous
// IN THE .install FILE:
/**
* Implementation of hook_install().
*/
function
node_to_word_stats_install
(
)
{
// Create tables.
drupal_install_schema
(
'node_to_word_stats'
)
;
// Populate
6.x
batch api
drupal
Read more
Fix for Allow HTML in node titles for Drupal 6.x
November 10, 2010 - 8:42am — Anonymous
<?php
/*
* Created 20 Apr 2009 12:07:47 by Greg Harvey
* http://www.drupaler.co.uk
*/
function
html_titles_preprocess_page
(
&
$vars
)
{
if
(
arg
(
0
)
==
'node'
&&
is_numeric
(
arg
(
1
)
)
)
{
$node
6.x
drupal
html
nodes
titles
Read more
Fix for XML RPC example for Drupal 6.x Services
August 26, 2010 - 11:43am — Anonymous
<?php
/**
* Function for generating a random string, used for
* generating a token for the XML-RPC session
*/
function
getUniqueCode
(
$length
=
""
)
{
$code
=
md5
(
uniqid
(
rand
(
)
,
true
)
)
;
6.x
drupal
Services
web services
xmlrpc
Read more
Node To Word Stats module, dev snapshot
August 17, 2010 - 12:48pm — Anonymous
<?php
// $Id$
/*
* Created by Greg Harvey on 26 Jul 2010
*
* http://www.drupaler.co.uk
*/
/**
* Helper function for returning node ID for given document
* download path.
*
* @p
6.x
drupal
module
Read more
Fix for Allow HTML in <i> node titles</i> for Drupal 6.x
July 31, 2010 - 3:23am — Anonymous
<?php
/*
* Created 20 Apr 2009 12:07:47 by Greg Harvey
* http://www.drupaler.co.uk
*/
function
html_titles_preprocess_page
(
&
$vars
)
{
if
(
arg
(
0
)
==
'node'
&&
is_numeric
(
arg
(
1
)
)
)
{
$node
6.x
drupal
html
nodes
titles
Read more
QuickTabs live example from newteachers.tes.co.uk/qanda
July 12, 2010 - 10:14am — Anonymous
/**
* Function for building the Q&A page tabbed views.
*/
function
nqt_features_build_qanda_quicktabs
(
)
{
$quicktabs
=
array
(
)
;
// General settings.
$quicktabs
[
'ajax'
]
=
TRUE
;
$quickt
6.x
drupal
quicktabs
Read more
1
2
3
4
next ›
last »