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
form
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 Form theming
September 28, 2009 - 4:17pm — Anonymous
<?php
function
formtheme_theme
(
)
{
return
array
(
'user_login'
=
>
array
(
'arguments'
=
>
array
(
'form'
=
>
array
(
)
)
,
'path'
=
>
drupal_get_path
(
'theme'
,
'formtheme'
)
.
form
form alter
theme
user login
Read more
Fix for Form theming
September 28, 2009 - 4:16pm — Anonymous
<?php
function
formtheme_theme
(
)
{
return
array
(
'user_login'
=
>
array
(
'arguments'
=
>
array
(
'form'
=
>
array
(
)
)
,
'path'
=
>
drupal_get_path
(
'theme'
,
'immortalgames'
)
.
form
form alter
theme
user login
Read more
Form theming
September 28, 2009 - 4:15pm — Anonymous
<?php
function
immortalgames_theme
(
)
{
return
array
(
'user_login'
=
>
array
(
'arguments'
=
>
array
(
'form'
=
>
array
(
)
)
,
'path'
=
>
drupal_get_path
(
'theme'
,
'immortalgames'
)
.
form
form alter
theme
user login
Read more
Fix for $form_state['redirect']
September 8, 2009 - 12:09am — Anonymous
function
emailusers_compose_form_submit
(
$form
,
&
$form_state
)
{
$form_values
=
$form_state
[
'values'
]
;
$account
=
$form_values
[
'to'
]
;
drupal_mail
(
'emailusers'
,
'composemessage'
,
$account
-
>
mail
,user_
form
Read more
FAPI screw-up
July 14, 2009 - 7:14am — Anonymous
if
(
arg
(
0
)
==
'node'
&&
is_numeric
(
arg
(
1
)
)
)
{
$node
=
node_load
(
arg
(
1
)
)
;
if
(
$node
-
>
field_event_registration
[
0
]
[
'nid'
]
)
{
if
(
$form_id
==
'webform_client_form_'
.
$node
-
>
field_eve
6.x
drupal
form
hell
Read more
$form_state['redirect']
June 24, 2009 - 5:42am — Anonymous
function
emailusers_compose_form_submit
(
$form
,
&
$form_state
)
{
$form_values
=
$form_state
[
'values'
]
;
$account
=
$form_values
[
'to'
]
;
drupal_mail
(
'emailusers'
,
'composemessage'
,
$account
-
>
mail
,user_
form
Read more
search block default value
May 19, 2009 - 4:50am — Anonymous
function
YOUR_MODULE_form_alter
(
&
$form
,
&
$form_state
,
$form_id
)
{
if
(
$form_id
==
'search_block_form'
)
{
$item
=
menu_get_item
(
)
;
if
(
$item
[
'map'
]
[
0
]
==
'search'
)
{
block
form
menu
search
Read more
AHAH callback
April 6, 2009 - 4:42pm — Anonymous
function
ca_taxonomy_term_js
(
)
{
module_load_include
(
'inc'
,
'ca'
,
'ca.admin'
)
;
$form_state
=
array
(
'storage'
=
>
NULL
,
'submitted'
=
>
FALSE
)
;
$form_build_id
=
$_POST
[
'form_build_id'
]
;
ahah
fapi
form
handler
Read more
1
2
3
next ›
last »