DrupalBin
Submit Code
About
Recent Posts
Code
1 hour 15 min
ago
Code
13 hours 15 min
ago
scrollbox.js
17 hours 35 min
ago
imagefield_gallery_scrollbox.module
17 hours 36 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
php
Fix for theme_view()
February 24, 2008 - 12:36am — Anonymous
<
?php
function theme_view
(
$view_name, $limit = NULL, $use_pager = NULL, $type =
'embed'
, $view_args = array
(
)
)
{
if
(
$view = views_get_view
(
$view_name
)
)
{
drupal
php
views
Read more
Fix for theme_view()
February 24, 2008 - 12:35am — Anonymous
function theme_view($view_name, $limit = NULL, $use_pager = NULL, $type = 'embed', $view_args = array()) {
if ($view = views_get_view($view_name)) {
drupal
php
views
Read more
Fix for theme_view()
February 24, 2008 - 12:35am — Anonymous
function
theme_view
(
$view_name
,
$limit
=
NULL
,
$use_pager
=
NULL
,
$type
=
'embed'
,
$view_args
=
array
(
)
)
{
if
(
$view
= views_get_view
(
$view_name
)
)
{
drupal
php
views
Read more
theme_view()
February 24, 2008 - 12:34am — Anonymous
/**
* Returns a themed view.
* @param $view_name
* The name of the view.
* @param $limit
* Maximum number of nodes displayed on one page. if $limit is set and $use_pager is
drupal
php
views
Read more
PHP is bad at numbers?
February 20, 2008 - 3:47pm —
Wim Leers
code:
dvm($converted_amount);
dvm(intval($converted_amount));
dvm((int) $converted_amount);
dvm((int) ($converted_amount + 0.01));
output:
float(1640)
int(1639)
int(1639)
php
Read more
dpkg -l | grep php
January 23, 2008 - 3:42pm — Anonymous
jyulliano@toshiba-satellite:~$ dpkg -
l
| grep php
ii libapache2-mod-php5
5.2
.3
-1ubuntu6
.3
server-side, HTML-embedded scripting languag
php
Read more
Fix for quicky statistics for drupal.org
November 9, 2007 - 2:22pm — Anonymous
<?php
print
"<dl>"
;
$nodes
= db_result
(
db_query
(
"SELECT COUNT(1) FROM {node}"
)
)
;
print
"<dt>Content (nodes):</dt><dd>"
.
$nodes
.
"</dd>"
;
drupal
php
quick
Read more
Fix for quicky statistics for drupal.org
November 9, 2007 - 2:04pm — Anonymous
<dl>
<?php
$nodes
= db_result
(
db_query
(
"SELECT COUNT(1) FROM {node}"
)
)
;
print
"<dt>Content (nodes):</dt><dd>"
.
$nodes
.
"</dd>"
;
$users
= db_result
(
db_query
(
"SELECT COUNT(1) FROM {users}"
)
)
;
drupal
php
quick
Read more
quicky statistics for drupal.org
November 9, 2007 - 2:04pm — Anonymous
<dl>
<?php
$nodes
= db_result
(
db_query
(
"SELECT COUNT(1) FROM {node}"
)
)
;
print
"<dt>Content (nodes):</dt><dd>"
.
$nodes
.
"</dd>"
;
$users
= db_result
(
db_query
(
"SELECT COUNT(1) FROM {users}"
)
)
;
drupal
php
quick
Read more