DrupalBin
Submit Code
About
Recent Posts
Code
1 hour 17 min
ago
Code
13 hours 17 min
ago
scrollbox.js
17 hours 37 min
ago
imagefield_gallery_scrollbox.module
17 hours 38 min
ago
more
Tags
CCK
drupal
fapi
javascript
jquery
menu
module
Panels
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
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
hook_nodeapi used for validation of CCK fields
May 2, 2008 - 12:21pm — Anonymous
<?php
function
sitehelper_nodeapi
(
&
$node
,
$op
,
$teaser
=
NULL
,
$page
=
NULL
)
{
if
(
$node
->
type
==
'cinfo'
)
{
switch
(
$op
)
{
case
'update'
:
break
;
CCK
hook_nodeapi
validation
Read more
Random non-colliding computed field values
February 18, 2008 - 12:30am — Anonymous
$rand
=
mt_rand
(
0
,
1000000000
)
;
while
(
(
int
)
db_result
(
db_query
(
'SELECT COUNT(*) FROM content_type_<content_type_name> WHERE field_<fieldname> = %d'
,
$rand
)
)
>
0
)
{
CCK
computed field
Read more
Insterting cck multiple value fields into a views list.
February 5, 2008 - 1:18am — Anonymous
ok i have this in my views.tpl.php
file
<?php
print
$field_property_images_fid
[
'views_image'
]
[
'0'
]
[
'view'
]
?>
and i did a
<?php
print_r
(
$field_property_images_fid
)
;
?>
CCK
views
Read more
Group By problem
February 4, 2008 - 11:02am — Anonymous
I have a problem when trying to group by a field in my view.
CCK
group by
views
Read more
Fix for Display block on specific node type, and set current node ID as view argument for node reference.
January 6, 2008 - 8:44am — Anonymous
<?php
// Make sure this is a block version of the view, and the current page is a node
if
(
$view
->
build_type
==
'block'
&& arg
(
0
)
==
'node'
&&
is_numeric
(
arg
(
1
)
)
)
{
blocks
CCK
node-reference
views
Read more
Fix for cck regex widget
January 3, 2008 - 2:38pm — Anonymous
- Widget settings ----------------------------
|
| Widget
| o Text Field
| o Text Area
|
| Label
| [textfield]
| Rows
| [textfield]
| Help text:
| [textarea]
|
| -> Default value
CCK
ghop
regex
widget
Read more
1
2
next ›
last »