DrupalBin
Submit Code
About
Recent Posts
Fix for Allow HTML in <i> node titles</i> for Drupal 6.x
Template Pre-proccessing
Testing Ubercart donation product
dave's menu screenshot
Code
Modify user profile page theme
Modify user profile page
Fix for Fix for Code
Fix for Code
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
test
theme
user
views
more tags
Home
arguments
view arguments exposed links
March 21, 2010 - 6:40pm — Anonymous
/**
* Implementation of hook_views_pre_render.
*/
function
views_arg_list_views_pre_render
(
&
$view
)
{
// check this is calendar view, showing a page
if
(
$view
-
>
name
==
'calendar_combined'
arguments
views
Read more
Code
January 14, 2009 - 7:12pm — Anonymous
In the header of my view (using php input format):
<?php
$view
=views_get_current_view
(
)
;
print_r
(
$view
-
>
args
)
;
print
"
\n
"
;
print
"name: "
.
$view
-
>
name
;
print
"
\n
"
;
arguments
drupal6
views
Read more
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