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
form
Hook_form_alter
March 15, 2012 - 5:11am — Anonymous
function
ganchos_form_alter
(
&
$form
,
&
$form_state
,
$form_id
)
{
$form
[
'author'
]
[
'#type'
]
=
'hidden'
;
$form
[
'options'
]
[
'#type'
]
=
'hidden'
;
$form
[
'comment_settings'
]
[
'#type'
]
=
'hidden'
;
form
Read more
Fix for form that does not call hook_submit
October 4, 2011 - 3:08am — Anonymous
<?php
// $Id: $
/**
* Implementation of hook_menu
*
*/
function
aspen_people_search_menu
(
)
{
$items
=
array
(
)
;
$items
[
'aspen_people_search'
]
=
array
(
'title'
=
>
t
(
'Aspen People
form
hook_submit
problem
Read more
Fix for Fix for form that doesnt call hook_submit
September 3, 2011 - 9:55am — Anonymous
/**
* Creating the actual form itself happens here
* Docs @
* http://api.drupal.org/api/file/developer/topics/forms_api.html/6
* http://api.drupal.org/api/file/developer/topics/forms_api_refer
form
hook_submit
problem
Read more
Ejemplo de tabla con formulario con filtros
June 8, 2011 - 10:59am — Anonymous
/*
* Implementation of hook_menu().
*/
function
admin_menu
(
)
{
$menu
[
'search'
]
=
array
(
'title'
=
>
t
(
'Search Database'
)
,
'description'
=
>
t
(
'Search in the report database.'
)
,
'a
form
search
table
Read more
Fix for Custom Company Info for Theming
February 18, 2011 - 4:16pm — Anonymous
<?php
// $Id:
function
system_custom_menu
(
)
{
$items
=
array
(
)
;
$items
[
'admin/settings/site-additional-info'
]
=
array
(
'title'
=
>
t
(
'Additional Site Information'
)
,
'page callback'
custom module
form
theming
Read more
Fix for Custom Company Info for Theming
February 18, 2011 - 4:07pm — Anonymous
<?php
// $Id:
function
system_custom_menu
(
)
{
$items
=
array
(
)
;
$items
[
'admin/settings/site-additional-info'
]
=
array
(
'title'
=
>
t
(
'Additional Site Information'
)
,
'page callback'
custom module
form
theming
Read more
Custom Company Info for Theming
February 18, 2011 - 4:06pm — Anonymous
<?php
// $Id:
function
system_custom_menu
(
)
{
$items
=
array
(
)
;
$items
[
'admin/settings/site-additional-info'
]
=
array
(
'title'
=
>
t
(
'Additional Site Information'
)
,
'page callback'
custom module
form
theming
Read more
Change <form> action
January 26, 2011 - 10:55pm — Anonymous
function
MYMODULE_form_alter
(
&
$form
,
$form_state
)
{
$form
[
'#action'
]
=
'http://www.example.com/path/to/submit'
;
}
form
How to clone a CCK-heavy node form
September 18, 2010 - 12:56pm — Anonymous
function
myzipmodule_form_massupload
(
&
$form_state
=
array
(
)
)
{
$content_type
=
'picture'
;
$form_id
=
$content_type
.
CCK
form
node
node form
Read more
theme node form
September 15, 2010 - 8:56am — Anonymous
function
bewplatt_theme
(
$existing
,
$type
,
$theme
,
$path
)
{
return
array
(
'bewertung_node_form'
=
>
array
(
'arguments'
=
>
array
(
'form'
=
>
NULL
)
,
'template'
=
>
'bewertung-node-form'
form
node
theme
Read more
1
2
3
4
next ›
last »