DrupalBin
Submit Code
About
Recent Posts
Fix for Views cumulus: tag_cloud
Fix for Code
sjfgjgjfgidfgh
Code
Code
test.berniecram.com.alias.drushrc.php
Code
provision-deploy error
Create node programmatically with file
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
arguments
block node visibility
August 10, 2010 - 3:34pm — Anonymous
<?php
if
(
arg
(
0
)
==
'user'
&&
arg
(
1
)
==
$user
-
>
uid
)
{
return
true
;
}
?>
arguments
block
php
visibility
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