DrupalBin
Submit Code
About
Recent Posts
how to add a ahah form element after submit
8 hours 52 min
ago
user_deco add functions
9 hours 3 min
ago
simple version
11 hours 56 min
ago
Fix for D6 path_set_alias
12 hours 52 min
ago
more
Tags
CCK
drupal
fapi
jquery
menu
module
Panels
php
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
block
Problem with views, block and nodequeue
December 11, 2008 - 10:34am — Anonymous
SELECT
COUNT
(
*
)
FROM
(
SELECT
node.nid AS nid
FROM
node node
INNER
JOIN
nodequeue_nodes nodequeue_nodes_node
ON node.nid = nodequeue_nodes_node.nid
AND
nodequeue_nodes_node.qid =
1
block
mysql
nodequeue
views
views 2
Add new comment
Read more
views code for current user block
November 18, 2008 - 9:38am — Anonymous
$view
=
new
view;
$view
->
name
=
'pootestpoo'
;
$view
->
description
=
'poopoo'
;
$view
->
tag
=
''
;
$view
->
view_php
=
''
;
$view
->
base_table
=
'users'
;
$view
->
is_cacheable
=
FALSE
;
block
user
views
Add new comment
Read more
call template file, pass variables
August 5, 2008 - 11:41pm — Anonymous
<?php
$text
= theme
(
'apply_template'
,
$data
)
;
return
$text
;
function
theme_apply_template
(
$data
)
{
ob_start
(
)
;
include
path_to_theme
(
)
.
'/my-block.tpl.php'
;
block
template
theme
Read more
Some code to search flickr for images
July 2, 2008 - 10:18am — Anonymous
function
_optotrip_block_flickr
(
)
{
$termtext
= _optotrip_get_block_context
(
)
;
if
(
$termtext
==
''
)
{
return
NULL
;
}
$starttime
=
microtime
(
TRUE
)
;
lightbox2_add_files
(
)
;
block
drupal
flickr
Read more
block visibility code doesn't work in all regions
February 28, 2008 - 3:04pm — Anonymous
if
(
drupal_is_front_page
(
)
==
TRUE
)
{
return
FALSE
;
}
else
{
return
TRUE
;
}
block
regions
theming
Blog author information
February 7, 2008 - 6:39pm — Anonymous
<?php
// $Id$
/**
* @file
* Implements block for showing archives, user picture, and links for blog sidebars.
*/
function
blog_sidebar_block
(
$op
=
'list'
,
$delta
=
0
,
$edit
=
array
(
)
)
{
block
module
visibility
Read more