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
preprocess function
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
Preprocess Fn to show $submitted username only for one content type
May 7, 2010 - 10:09am —
BrightBold
function
mytheme_node_submitted
(
$node
)
{
if
(
$vars
[
'node'
]
-
>
type
==
'blog_post'
)
{
return
t
(
'by !username on @datetime'
,
array
(
'!username'
=
>
theme
(
'username'
,
$node
)
,
'@datetime'
$submitted
meta
preprocess function
Read more
Preprocess Fn to show $submitted usename only for one coment type
May 7, 2010 - 9:52am — Anonymous
function
mytheme_node_submitted
(
$node
)
{
if
(
$vars
[
'node'
]
-
>
type
==
'blog_post'
)
{
return
t
(
'by !username on @datetime'
,
array
(
'!username'
=
>
theme
(
'username'
,
$node
)
,
'@datetime'
meta
preprocess function
submitted
Read more
Preprocess Fn to show $submitted usename only for one coment type
May 7, 2010 - 9:50am — Anonymous
function
matp2point0_node_submitted
(
$node
)
{
if
(
$vars
[
'node'
]
-
>
type
==
'blog_post'
)
{
return
t
(
'by !username on @datetime'
,
array
(
'!username'
=
>
theme
(
'username'
,
$node
)
,
'@dateti
meta
preprocess function
submitted
Read more
Override of _preprocess_search_block_form(&variables) is not printing anything
November 1, 2009 - 12:29pm — Anonymous
function
drunove_preprocess_search_block_form
(
&
$variables
)
{
$variables
[
'search'
]
=
array
(
)
;
$variables
[
'form'
]
[
'search_block_form'
]
[
'#attributes'
]
[
'class'
]
=
'search-input'
;
$variables
[
'for
drupal 7
preprocess function
theme engine
Read more