DrupalBin
Submit Code
About
Recent Posts
Code
Fix for YesCT make an acronym
YesCT make an acronym
Code
block_menu
Node lookup
Fix for Video tag RegExp
Video tag RegExp
Fix for regexp prob.
regexp prob.
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
CCK
Fix for Fix for Creating imagefield content programatically
January 13, 2010 - 9:51am — Anonymous
function
sti_migrate_form_submit
(
$form
,
&
$form_state
)
{
$form_state
=
array
(
)
;
module_load_include
(
'inc'
,
'node'
,
'node.pages'
)
;
$node
=
array
(
'type'
=>
'tell_your_story'
)
;
$form_state
[
'va
CCK
drupal_execute
Read more
1 attachment
Fix for Creating imagefield content programatically
January 13, 2010 - 9:49am — Anonymous
function
sti_migrate_form_submit
(
$form
,
&
$form_state
)
{
$form_state
=
array
(
)
;
module_load_include
(
'inc'
,
'node'
,
'node.pages'
)
;
$node
=
array
(
'type'
=>
'tell_your_story'
)
;
$form_state
[
'va
CCK
drupal_execute
Read more
Fix for if cck field
October 27, 2009 - 5:14am — Anonymous
if
(
$node
-
>
field_location_street
[
0
]
[
'value'
]
)
{
print
'<span class="label">'
.
t
(
'address'
)
.
': </span>'
.
$node
-
>
field_location_street
[
'0'
]
[
'value'
]
;
CCK
Read more
if cck field
October 27, 2009 - 4:56am — Anonymous
if
(
$node
-
>
field_location_land
[
0
]
[
'value'
]
)
{
print
'<span class="label">'
.
t
(
'address'
)
.
': </span>'
.
$node
-
>
field_location_street
[
'0'
]
[
'value'
]
;
CCK
Read more
imagefield.install does not work with filefield.install update ID's
October 15, 2009 - 2:20pm — Anonymous
<?php
# imagefield.install
/**
* Convert image field type to filefield.
*/
function
imagefield_update_6003
(
)
{
$ret
=
array
(
)
;
if
(
drupal_get_installed_schema_version
(
'filefield'
, TRU
CCK
filefield
imagefield
Read more
CCK field not showing up in field selection dialog
October 15, 2009 - 2:14pm — Anonymous
<?php
// $Id$
/**
* @file
* CCK Field to integrate products to nodes
*
* Allow products to be associated with a content type and acced to cart on node creation
*/
function
uc_product_
CCK
ubercart
Read more
Fix for Creating imagefield content programatically
August 1, 2009 - 2:55pm —
pacemkr
function
sti_migrate_form_submit
(
$form
,
&
$form_state
)
{
$form_state
=
array
(
)
;
module_load_include
(
'inc'
,
'node'
,
'node.pages'
)
;
module_load_include
(
'inc'
,
'filefield'
,
'field_file'
)
;
$n
CCK
drupal_execute
Read more
make node cck fields into a table
July 24, 2009 - 7:07am —
David Thomas
/**
* return cck fields formatted as table
*/
function
phptemplate_content_format_table
(
$node
)
{
// get fields
$fields
= content_fields
(
NULL
,
$node
-
>
type
)
;
$header
=
array
(
''
,
''
)
;
$ro
CCK
Read more
make node cck fields into a table
July 24, 2009 - 7:06am —
David Thomas
/**
* return cck fields formatted as table
*/
function
phptemplate_content_format_table
(
$node
)
{
// get fields
$fields
= content_fields
(
NULL
,
$node
-
>
type
)
;
$header
=
array
(
''
,
''
)
;
$ro
CCK
Read more
make node cck fields into a table
July 24, 2009 - 7:05am —
David Thomas
/**
* return cck fields formatted as table
*/
function
energynews_get_cck_table
(
$node
)
{
// get fields
$fields
= content_fields
(
NULL
,
$node
-
>
type
)
;
$header
=
array
(
''
,
''
)
;
$rows
= arr
CCK
Read more
1
2
3
4
5
6
7
8
next ›
last »