DrupalBin
Submit Code
About
Recent Posts
Code
1 hour 42 min
ago
weird filefield with mp3 embed object
1 hour 58 min
ago
D6 FAPI Examples
2 hours 26 min
ago
returning to the same code a second time doesn't have the $form_values argument set
6 hours 46 min
ago
more
Tags
CCK
drupal
fapi
jquery
menu
module
Panels
security scanner
simpletest
test
theme
views
more tags
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Create new account
Request new password
Log in using OpenID
Cancel OpenID login
Home
CCK
largeview.module
August 13, 2008 - 6:35pm — Anonymous
<?php
// $Id$
/**
* Stole this code from image cache, goal here is to add one more
* formatter that links to node/nid/large instead of node/nid
CCK
module
Read more
add 'property' cck node using drupal_execute (d6)
August 9, 2008 - 8:54pm — Anonymous
function
mymodule_import
(
)
{
// get the old data
$old_db
=
mysql_connect
(
"host"
,
"user"
,
"pass"
)
or
die
(
'Could not connect to mysql server.'
)
;
CCK
import
Read more
Example of avoiding $content and themeing $node sectins directly
August 5, 2008 - 9:28am — Anonymous
<div
class
=
"node<?php print ($sticky) ? "
sticky
" : "
"; ?> blog"
>
<?php
if
(
$page
==
0
)
:
?>
<h1
class
=
"title"
><a href=
"<?php print $node_url ?>"
title=
"<?php print $title
CCK
node
theme
Read more
Function where I think the code should be integrated
July 22, 2008 - 6:05am — Anonymous
/**
* Search and Replace routine. Scans the body of a node and replaces every tag and its parameters with an object.
*/
function
_flashvideo_replace_tags
(
&
$node
,
$tag
)
{
CCK
flashvideo
module
Read more
this is the cck type export for a fieldgroup_table that doesn't work...
July 17, 2008 - 2:37am — Anonymous
$content
[
type
]
=
array
(
'name'
=>
'A Test'
,
'type'
=>
'a_test'
,
'description'
=>
''
,
'title_label'
=>
'Title'
,
'body_label'
=>
'Body'
,
'min_word_count'
=>
'0'
,
'help'
=>
''
,
CCK
content type export
fieldgroup_table
Read more
cck_validation code
July 9, 2008 - 9:50am — Anonymous
$exclusive
=
$node
->
field_exclusive
[
0
]
[
'value'
]
;
$no_isrc
=
$node
->
field_has_no_isrc
[
0
]
[
'value'
]
;
$isrc_code
=
$node
->
field_isrc_code
[
0
]
[
'value'
]
;
CCK
cck validation
Read more
Drupal Execute progrmatically
July 2, 2008 - 2:49pm — Anonymous
// Insert default user-defined node types into the database.
// For a complete list of available node type attributes, refer to the node
// type API documentation at:
CCK
Read more
custom node template
June 26, 2008 - 9:44am — Anonymous
<div
class
=
"content"
>
<?php
print
content_format
(
'field_buildings_img'
,
$field_buildings_img
[
0
]
)
;
?>
<?php
print
check_markup
(
$node
->
content
[
'body'
]
[
'#value'
]
)
?>
CCK
template
theme
Read more
cck variables get printed as null in Drupal 5 view
June 10, 2008 - 5:57am — Anonymous
//in template.php----------------------------
function
phptemplate_views_view_list_promotion_box
(
$view
,
$nodes
,
$type
)
{
/*
$fields = _views_get_fields();
CCK
D5
views
Read more
Inserting a nodereference field into a view.
June 4, 2008 - 8:03am — Anonymous
// Add the nodereference field if it's not present.
$nodereference_table
= content_views_tablename
(
$nodereference_field
)
;
CCK
nodereference
views
Read more
1
2
3
next ›
last »