DrupalBin
Submit Code
About
Recent Posts
Code
1 hour 18 min
ago
Code
13 hours 18 min
ago
scrollbox.js
17 hours 38 min
ago
imagefield_gallery_scrollbox.module
17 hours 39 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
views
Fix for Argument handling code for a view taking in TID as argument, trying to get the parent TID to be returned (if it has)
June 27, 2008 - 11:40am — Anonymous
// note that this only gets the immediate parent
if
(
$args
[
0
]
)
{
$parents
=
taxonomy_get_parents
(
$args
[
0
]
)
;
if
(
$parents
)
{
foreach
(
$parents
as
$parent
)
{
$parentID
=
$parent
->
tid
;
arguments
taxonomy
views
Read more
Argument handling code for a view taking in TID as argument, trying to get the parent TID to be returned (if it has)
June 27, 2008 - 10:14am — Anonymous
if
(
taxonomy_get_parents
(
$args
[
0
]
)
)
{
$args
[
0
]
=
taxonomy_get_parents
(
$args
[
0
]
)
;
}
return
$args
;
arguments
taxonomy
views
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
Fix for views_ajax show thumbnail
May 26, 2008 - 9:34pm — Anonymous
function
theme_views_ajax_page_item
(
$node
)
{
$file
=
next
(
$node
->
files
)
;
// return l(theme('image', $file->filepath, NULL, NULL, array('border' => 0)), $path, NULL, NULL, NULL, NULL, TRUE);
ajax
Custom theme
views
Read more
Fix for views_ajax show thumbnail
May 26, 2008 - 9:22pm — Anonymous
function
theme_views_ajax_page_item
(
$node
)
{
$file
=
current
(
$node
->
files
)
;
// return l(theme('image', $file->filepath, NULL, NULL, array('border' => 0)), $path, NULL, NULL, NULL, NULL, TRUE);
ajax
Custom theme
views
Read more
Fix for views_ajax show thumbnail
May 26, 2008 - 9:17pm — Anonymous
function
theme_views_ajax_page_item
(
$node
)
{
$file
=
current
(
$node
->
files
)
;
return
l
(
theme
(
'image'
,
$file
->
filepath
,
NULL
,
NULL
,
array
(
'border'
=>
0
)
)
,
$path
,
NULL
,
NULL
,
NULL
,
NULL
,
TRUE
)
;
}
ajax
Custom theme
views
views_ajax show thumbnail
May 26, 2008 - 9:10pm — Anonymous
function
theme_views_ajax_page_item
(
$node
)
{
$file
=
current
(
$node
->
files
)
;
l
(
theme
(
'image'
,
$file
->
filepath
,
NULL
,
NULL
,
array
(
'border'
=>
0
)
)
,
$path
,
NULL
,
NULL
,
NULL
,
NULL
,
TRUE
)
;
}
ajax
Custom theme
views
views_json style plugin
May 23, 2008 - 3:36pm — Anonymous
/**
* Implementation of hook_views_plugins
*/
function
views_json_views_plugins
(
)
{
return
array
(
'style'
=>
array
(
'views_json'
=>
array
(
views
Read more
Code
May 18, 2008 - 2:51pm —
Wim Leers
/**
* Implementation of hook_requirements().
*/
function
hs_views_taxonomy_requirements
(
$phase
)
{
$requirements
=
array
(
)
;
if
(
$phase
==
'runtime'
)
{
$pattern
= <<<EOT
hierarchical-select
views
Read more
1
2
3
4
5
next ›
last »