DrupalBin
Submit Code
About
Recent Posts
MENU_DEFAULT_LOCAL_TASK weight
Body classes
Code
Code
Code
Code
Code
Fix for omni
omni
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
drupal
Fix for Multipage User Registration
February 18, 2010 - 10:04pm —
abigoltree
<?php
/**
* Implementation of hook_menu()
*/
function
multipage_register_menu
(
)
{
$items
[
'add/user'
]
=
array
(
'title'
=
>
'Add a user'
,
'page callback'
=
>
'multipage_register_wizard'
,
'ac
drupal
form
user creation
Read more
Multipage User Registration
February 18, 2010 - 5:55pm —
abigoltree
<?php
/**
* The purpose of this module is to take the user-registration form and make it
* multipage, where the pages change depending on the options selected during
* the last step.
drupal
form
user creation
Read more
Fix for Fix for Fix for Allow HTML in node titles for Drupal 6.x
December 16, 2009 - 8:58am — 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 Fix for Allow HTML in node titles for Drupal 6.x
December 16, 2009 - 8:58am — 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 Allow HTML in node titles for Drupal 6.x
December 16, 2009 - 8:57am — 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 Fix for QueryPath for removing an XML item
November 6, 2009 - 4:41pm — Anonymous
function
mymodule_update_languages_xml
(
$form
,
&
$form_state
)
{
/*
...
*/
$qp
= qp
(
$file
)
;
if
(
$form_state
[
'values'
]
[
'op'
]
==
'Delete'
)
{
// Find only items that have id=
drupal
querypath
xml
Read more
Fix for QueryPath for removing an XML item
November 5, 2009 - 5:39pm — Anonymous
function
mymodule_update_languages_xml
(
$form
,
&
$form_state
)
{
/*
...
*/
$qp
= qp
(
$file
)
;
if
(
$form_state
[
'values'
]
[
'op'
]
==
'Delete'
)
{
$qp
-
>
find
(
'languageList'
)
-
>
find
(
drupal
querypath
xml
Read more
QueryPath for removing an XML item
November 5, 2009 - 5:38pm — Anonymous
function
mymodule_add_language_xml
(
$form
,
&
$form_state
)
{
/*
...
*/
$qp
= qp
(
$file
)
;
if
(
$form_state
[
'values'
]
[
'op'
]
==
'Delete'
)
{
$qp
-
>
find
(
'languageList'
)
-
>
find
(
'ite
drupal
querypath
xml
Read more
Module for setting a separate permission for theme management
October 20, 2009 - 9:40am — Anonymous
<?php
// $Id$
/*
* Created by Greg Harvey on 20 Oct 2009
*
* http://www.drupaler.co.uk
*/
/**
* Implementation of hook_perm().
*
* Provide a new permission for theme admin acces
6.x
admin
drupal
module
themes
Read more
XML RPC example for Drupal 6.x Services
October 7, 2009 - 5:34am — 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
1
2
3
4
5
6
7
next ›
last »