DrupalBin
Submit Code
About
Recent Posts
Views 2 get all field names
2 min 43 sec
ago
Code
40 min 47 sec
ago
How do i make this work in D6 (I have to clear the cache everytime to see the tabs)
3 hours 31 min
ago
Code
4 hours 27 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
Fix for theme_view()
View
Download
Fix
This fix will not be saved to the database until you submit.
Summary:
Tags:
Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Source code:
*
<?php function theme_view($view_name, $limit = NULL, $use_pager = NULL, $type = 'embed', $view_args = array()) { if ($view = views_get_view($view_name)) { $use_pager = isset($use_pager) ? $use_pager : $view->use_pager; $limit_default = ($type == 'block') ? $view->nodes_per_block : $view->nodes_per_page; $limit = isset($limit) ? $limit : $limit_default; return views_build_view($type, $view, $view_args, $use_pager, $limit); } } ?> <?php theme('view', $view_name, $limit = NULL, $use_pager = NULL, $type = 'embed', $view_args = array()) ?>
Syntax highlighting mode:
ActionScript
ColdFusion
Diff
Drupal
Drupal 5
Drupal 6
HTML
Javascript
MySQL
PHP
Python
robots.txt
SQL
Text
Select the syntax highlighting mode to use.