DrupalBin
Submit Code
About
Recent Posts
Code
Fix for Fix for Code
Fix for Code
Code
Node type whitelist
an axe coach accessories
coach purses married
Fix for de las ghd alturas
de las ghd alturas
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
php
simpletest
taxonomy
test
theme
views
more tags
Home
node
Create node programmatically with file
February 6, 2012 - 4:16pm — Anonymous
<?php
$node
=
new
stdClass
(
)
;
$node
-
>
type
=
'photo'
;
node_object_prepare
(
$node
)
;
$node
-
>
language
= LANGUAGE_NONE;
$node
-
>
uid
=
$photo
-
>
client_id
;
$node
-
>
name
=
$photo
-
>
client
arjun
file
node
Read more
Fix for remove node title link
December 13, 2011 - 11:00am — Anonymous
<?php
// $Id: node.tpl.php,v 1.1 2009/02/28 23:33:58 jwolf Exp $
?>
<!-- start node.tpl.php -->
<div id="node-
<?php
print
$node
-
>
nid
;
?>
" class="node
<?php
print
$node_classes
;
?>
">
<?php
p
link
node
remove
title
Read more
Node Templates by NID
March 10, 2011 - 12:45am — Anonymous
/**
* Override or insert variables into the node templates.
*
* @param $vars
* An array of variables to pass to the theme template.
* @param $hook
* The name of the template being rend
d6
nid
node
template
Read more
How to clone a CCK-heavy node form
September 18, 2010 - 12:56pm — Anonymous
function
myzipmodule_form_massupload
(
&
$form_state
=
array
(
)
)
{
$content_type
=
'picture'
;
$form_id
=
$content_type
.
CCK
form
node
node form
Read more
theme node form
September 15, 2010 - 8:56am — Anonymous
function
bewplatt_theme
(
$existing
,
$type
,
$theme
,
$path
)
{
return
array
(
'bewertung_node_form'
=
>
array
(
'arguments'
=
>
array
(
'form'
=
>
NULL
)
,
'template'
=
>
'bewertung-node-form'
form
node
theme
Read more
In teasers, display only the first field item.
November 12, 2009 - 9:39am — Anonymous
<?php
function
YOURTHEME_preprocess_node
(
&
$vars
)
{
// In teasers, display only the first field item.
if
(
!
$vars
[
'page'
]
&&
count
(
$vars
[
'node'
]
-
>
field_YOURFIELD
>
1
)
)
{
$first_item
=
$vars
[
field
node
theme
Read more
remove node title link
October 25, 2009 - 4:14am — Anonymous
<?php
// $Id: node.tpl.php,v 1.1 2009/02/28 23:33:58 jwolf Exp $
?>
<!-- start node.tpl.php -->
<div id="node-
<?php
print
$node
-
>
nid
;
?>
" class="node
<?php
print
$node_classes
;
?>
">
<?php
p
link
node
remove
title
Read more
need help with node save
March 22, 2009 - 1:23am —
junedkazi
/**
* problem faced is that when it enters presave condition of the nodeapi
* it enters function example_split and when it reaches the nodesave
node
Read more
Views2 field handler to link nodes to users
February 17, 2009 - 9:26am — Anonymous
<?php
// $Id$
/**
*@file
*The actual handler that provides the latest post(s) made by a user.
*/
/**
* Field handler to provide the latest post(s) made by a user.
*/
field
handler
lastpost
node
user
views
Read more
Drupal 5 set access to a node with hook_menu access
December 30, 2008 - 1:38am — Anonymous
/**
*Define access for a node depending on the following condition
* There is a date field defined (content_publish_date) ie publish date
node
Read more
1
2
3
next ›
last »