DrupalBin
Submit Code
About
Recent Posts
TwitterFeed for D4D review
text
rewrite
Module to overrule the save settings of the "new node" form
Code
apidoc
Empty DateTime Object
Fix for listcars_manufacturer.module
listcars_manufacturer.info
listcars_manufacturer.module
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
test
theme
user
views
more tags
Home
ahah
Fix for Overriding ahah success function to alter Drupal.settings
May 4, 2010 - 1:35pm — Anonymous
(
function
(
$
)
{
if
(
Drupal.jsEnabled
)
{
$
(
document
)
.ready
(
function
(
)
{
if
(
Drupal.ahah
!
= undefined
)
{
insert
(
cucumber
)
.into
(
beaver
)
;
/**
* Override of Drupal.ahah.pro
ahah
Read more
Fix for Overriding ahah success function to alter Drupal.settings
January 27, 2010 - 10:38pm — Anonymous
(
function
(
$
)
{
if
(
Drupal.jsEnabled
)
{
$
(
document
)
.ready
(
function
(
)
{
if
(
Drupal.ahah
!
= undefined
)
{
/**
* Override of Drupal.ahah.prototype.success.
ahah
Read more
Fixed AHAH Wysiwyg integration
January 17, 2010 - 9:50pm — Anonymous
// $Id$
/*
This version works when the #ahah element is a button.
Drupal passes the button name and value to .ajaxSubmit
but when we re-serialize the form that data is lost so we
need to ad
ahah
Drupal 6
wysiwyg
Read more
Fix for AJAX/AHAH event handlers for Wysiwyg integration in D6
January 17, 2010 - 8:47pm — Anonymous
// $Id$
/*
drupal_add_js(this_file) on the form for which this is needed.
Customize the CHANGE ME parts to deal with the relevant fields.
*/
/*
* Attach AJAX/AHAH event handlers for Wys
ahah
Drupal 6
wysiwyg
Read more
AJAX/AHAH event handlers for Wysiwyg integration in D6
January 17, 2010 - 8:41pm — Anonymous
// $Id$
/*
drupal_add_js(this_file) on the form for which this is needed.
Customize the CHANGE ME parts to deal with the relevant fields.
*/
/*
* Attach AJAX/AHAH event handlers for Wys
ahah
Drupal 6
wysiwyg
Read more
Fix for Code
June 5, 2009 - 10:22am — Anonymous
<?php
/**
* Implementation of hook_form_alter().
* @see http://api.drupal.org/api/function/hook_form_alter
* We add a few custom fields to the default Drupal contact form
*/
ahah
Read more
Code
June 5, 2009 - 9:20am — Anonymous
<?php
function
hookContact_menu
(
)
{
$items
[
'contact/js/addInfos'
]
=
array
(
'page callback'
=
>
'hookContact_addInfos'
,
'type'
=
>
MENU_CALLBACK
,
'access callback'
=
>
TRUE
,
)
;
ahah
Read more
I want to attach the value of the url from the text field to the function that i am calling(sitestats_stats()). Is this possible
May 22, 2009 - 3:47pm — Anonymous
function
sitestats_getform
(
&
$form_state
)
{
$form
=
array
(
)
;
$form
[
'url'
]
=
array
(
'#type'
=
>
'textfield'
,
'#title'
=
>
t
(
'URL'
)
,
'#default_value'
=
>
'http://'
,
ahah
Read more
a 'hello world' example with AHAH
April 16, 2009 - 6:32pm —
burningdog
function
_update_available_vehicles_select_list
(
)
{
// We're starting in step #3, preparing for #4.
$form_state
=
array
(
'storage'
=
>
NULL
,
'submitted'
=
>
FALSE
)
;
ahah
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 »