DrupalBin
Submit Code
About
Recent Posts
Serializable closures
Closures in menu item arguments
dpr($content['field_headshot'])
Fix for Git push error
Проверка
Code
$item['title'] = $item['title'];
Loading specific field
expire give non-aliased paths
Fix for 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
field
block to filter by contextual field
May 15, 2012 - 3:29pm — Anonymous
$view
=
new
view
;
$view
->
name
=
'bloco_cidade'
;
$view
->
description
=
''
;
$view
->
tag
=
'default'
;
$view
->
base_table
=
'node'
;
$view
->
human_name
=
'bloco_cidade'
;
$view
->
core
=
7
;
$view
->
api_vers
Contextual field
field
views
Read more
Fix for Fix for Fix for Load array content into multi valued field
September 11, 2011 - 2:14pm — Anonymous
<?php
/**
* @file
* isbn2node module
*/
// Define the url's for fetching ISBN-data
define
(
'ISBN2NODE_ISBNDB_URL'
,
'http://isbndb.com/api/books.xml?access_key=%access_key&results=detail
array
CCK
field
multivalued field
Read more
Fix for Fix for Load array content into multi valued field
September 11, 2011 - 2:12pm — Anonymous
<?php
/**
* @file
* isbn2node module
*/
// Define the url's for fetching ISBN-data
define
(
'ISBN2NODE_ISBNDB_URL'
,
'http://isbndb.com/api/books.xml?access_key=%access_key&results=detail
array
CCK
field
multivalued field
Read more
Fix for Load array content into multi valued field
September 11, 2011 - 2:11pm — Anonymous
case
'isbn2node_author'
:
$authors_array
=
explode
(
','
,
$default_value
)
;
sort
(
$authors_array
)
;
$rows
=
0
;
for
(
$index
=
0
;
$index
<
co
array
CCK
field
multivalued field
Read more
Load array content into multi valued field
September 11, 2011 - 2:02pm — Anonymous
case
'isbn2node_author'
:
$authors_array
=
explode
(
','
,
$default_value
)
;
sort
(
$authors_array
)
;
$rows
=
0
;
for
(
$index
=
0
;
$index
<
co
array
CCK
field
multivalued field
Read more
Create a field
January 6, 2011 - 1:17pm — Anonymous
/* I know how to create field, eg. a taxonomy_term_reference */
$field
=
array
(
'field_name'
=
>
'field_'
.
CCK
drupal 7
field
field_create_field
Read more
Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Friends
January 16, 2010 - 12:01am — Anonymous
<?php
global
$user
;
$rtid
=
1
;
//Relationship type ID.
$max
=
5
;
//The amount of users to show on the block.
$user_rel
=
db_query
(
"
SELECT u.uid
FROM {users} u
LEFT JOIN {user_relationships}
display
field
FOAF
grid
profile
row
table
user
Read more
Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Friends of frien
January 15, 2010 - 11:59pm — Anonymous
<?php
global
$user
;
$rtid
=
1
;
//Relationship type ID.
$max
=
5
;
//The amount of users to show on the block.
$user_rel
=
db_query
(
"
SELECT u.uid
FROM {users} u
LEFT JOIN {user_relationships}
display
field
FOAF
grid
profile
row
table
user
Read more
Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Friends of friends code.
January 15, 2010 - 11:56pm — Anonymous
<?php
global
$user
;
$rtid
=
1
;
//Relationship type ID.
$max
=
5
;
//The amount of users to show on the block.
$user_rel
=
db_query
(
"
SELECT u.uid
FROM {users} u
LEFT JOIN {user_relationships}
display
field
FOAF
grid
profile
row
table
user
Read more
Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Friends of friends code. Need u
January 15, 2010 - 11:38pm — Anonymous
<?php
global
$user
;
$rtid
=
1
;
//Relationship type ID.
$max
=
5
;
//The amount of users to show on the block.
$user_rel
=
db_query
(
"
SELECT u.uid
FROM {users} u
LEFT JOIN {user_relationships}
display
field
FOAF
grid
profile
row
table
user
Read more
1 attachment
1
2
3
4
next ›
last »