DrupalBin
Submit Code
About
Recent Posts
Code
Fix for Close button for views
Close button for views
Code
Code
Code
results
hook_view and hook_insert
KITTENS ZOMG
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 6
Fix for Example of using 'title callback' and 'title arguments' in Drupal 6
February 26, 2010 - 2:41am — Anonymous
/**
* Implementation of hook_menu().
*/
function
cck_gallery_menu
(
)
{
$items
[
'cck-galleries/%user'
]
=
array
(
//define the function that generates the page title
'title callback'
=
>
'
Drupal 6
hook_menu
title arguments
title callback
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
Example of using 'title callback' and 'title arguments' in Drupal 6
January 23, 2009 - 9:29am — Anonymous
/**
* Implementation of hook_menu().
*/
function
cck_gallery_menu
(
)
{
$items
[
'cck-galleries/%user'
]
=
array
(
//define the function that generates the page title
Drupal 6
hook_menu
title arguments
title callback
Read more
Loading views in hook_menu()
January 23, 2009 - 8:37am — Anonymous
/**
* Implementation of hook_menu().
*/
function
cck_gallery_menu
(
)
{
$items
[
'cck-gallery'
]
=
array
(
'title'
=
>
'My galleries'
,
Drupal 6
hook_menu
views
views 2
Read more
Post Problem
December 31, 2008 - 4:44am — Anonymous
<?php
function
xmd5form_form
(
)
{
$form
[
'xmd5'
]
=
array
(
'#type'
=
>
'textfield'
,
'#title'
=
>
t
(
'Convert text to md5'
)
,
'#default_value'
=
>
$object
[
'xmd5'
]
,
'#size'
=
>
60
,
Drupal 6
POST
Read more
post problem
December 31, 2008 - 4:03am — Anonymous
<?php
function
xmd5form_form
(
)
{
$form
[
'xmd5'
]
=
array
(
'#type'
=
>
'textfield'
,
'#title'
=
>
t
(
'Convert text to md5'
)
,
'#default_value'
=
>
$object
[
'xmd5'
]
,
'#size'
=
>
60
,
Drupal 6
POST
Read more
Example of pager_query
December 16, 2008 - 9:46am — Anonymous
$result
=
pager_query
(
db_rewrite_sql
(
"SELECT n.nid, n.title, n.changed, n.status
FROM {node} n
WHERE n.uid = %d
AND n.type = '%s'
Drupal 6
pager
pager_query
Read more
A custom node type for vehicles using taxonomy to manage make / model details
October 8, 2008 - 11:56pm —
Phippsy
<?php
// $Id: vehicle.module,v 1.26 2008/10/9 13:40:00 michaelphipps Exp $
/**
* @node_vehicle
* This module defines a custom node type with a custom make / model form element
Custom Element
custom node
Drupal 6
taxonomy
Read more
1
2
next ›
last »