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
Drupal 6
Fix for Function to add taxonomy and content_taxonomy to a node object
August 25, 2010 - 1:03pm — Anonymous
// Sample usage:
$node
=
new
StdClass
(
)
;
$node
-
>
type
=
"story"
;
$node
-
>
title
=
"Hello world"
;
$tags
=
array
(
'red'
,
'white'
,
'blue'
)
;
my_nodeobject_add_content_taxonomy
(
&
$node
, 1,
$tags
,
'create'
,
CCK
content_taxonomy
Drupal 6
node_save()
Read more
Function to add taxonomy and content_taxonomy to a node object
August 25, 2010 - 1:01pm — Anonymous
/**
* Modifies a node object adding taxonomy terms and, optionally, modifying a
* content_taxonomy type field.
*
* @param <type> $node
* A node object.
* @param <type> $vid
* The voc
CCK
content_taxonomy
Drupal 6
node_save()
Read more
Get an unaliased views row object for views for views_view_field preprocess functions
August 2, 2010 - 6:26pm — Anonymous
/**
* Returns a view row object in which the property names are unaliased.
*
* This facilitates accessing properties from theme hooks when the
* field_alias is arbitrary unknown, or just non-t
Convenience
Drupal 6
preprocess
preprocess function
theming
views
views 2
Read more
Fix for Example of pager_query
April 19, 2010 - 11:06pm — 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'
ORDER BY n
Drupal 6
pager
pager_query
Read more
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
1
2
3
next ›
last »