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
fields
Code to change image style to the image style set in another field.
January 9, 2012 - 5:39pm — Anonymous
function
mymodule_field_display_alter
(
&
$display
,
$context
)
{
// If the field is an image, then change the display settings depending on the value of the image size choice.
if
(
$display
[
'type'
]
=
fields
image
image field
Read more
Views 2 get all field names
November 20, 2008 - 12:21pm — Anonymous
// Put this inside a views-view-fields--VIEWNAME.tpl.php file to show the names of all the fields. Remember to set your view's row style to fields.
$field_keys
=
array
(
)
;
field
field names
fields
views
views 2
Read more
Readonly module
July 15, 2008 - 9:35am —
timmillwood
<?php
// $Id$
function
readonly_menu
(
)
{
$items
=
array
(
)
;
$items
[
'admin/settings/readonly'
]
=
array
(
'title'
=
>
t
(
'Read Only'
)
,
'description'
=
>
t
(
'Which profile fields'
)
,
fields
profile
readonly
Read more