Index: img-assist-browser-thumbnail.tpl.php =================================================================== RCS file: img-assist-browser-thumbnail.tpl.php diff -N img-assist-browser-thumbnail.tpl.php --- img-assist-browser-thumbnail.tpl.php 18 Jul 2008 22:54:36 -0000 1.1.2.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,26 +0,0 @@ - - Index: includes/img_assist.views.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/img_assist/includes/img_assist.views.inc,v retrieving revision 1.1.2.1 diff -u -p -r1.1.2.1 img_assist.views.inc --- includes/img_assist.views.inc 12 Sep 2008 21:10:55 -0000 1.1.2.1 +++ includes/img_assist.views.inc 15 Sep 2008 19:35:43 -0000 @@ -10,17 +10,17 @@ /** * Implementation of hook_views_plugins(). * - * Define a row style plugin to display an Image assist thumbnail. + * Defines a row style plugin to display a thumbnail in the image browser. */ function img_assist_views_plugins() { return array( - // Define a row style plugin for the thumbnail browser. 'row' => array( 'img_assist_thumbnail' => array( 'title' => t('Image Assist thumbnail'), - // 'help' => t(''), 'handler' => 'views_plugin_row', 'theme' => 'img_assist_browser_thumbnail', + 'theme path' => drupal_get_path('module', 'img_assist') .'/theme', + 'theme file' => 'theme.inc', 'uses options' => FALSE, 'type' => 'normal', ), @@ -28,16 +28,3 @@ function img_assist_views_plugins() { ); } -/** - * Setup variables for the browser thumbnail template. - * - * @param array $vars - */ -function template_preprocess_img_assist_browser_thumbnail(&$vars) { - $node = node_load($vars['row']->nid); - - $vars['thumbnail'] = img_assist_display($node, IMAGE_THUMBNAIL); - $vars['path'] = url('img_assist/properties/'. $node->nid); - $vars['title'] = $node->title; -} - Index: theme/img-assist-browser-thumbnail.tpl.php =================================================================== RCS file: theme/img-assist-browser-thumbnail.tpl.php diff -N theme/img-assist-browser-thumbnail.tpl.php --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ theme/img-assist-browser-thumbnail.tpl.php 15 Sep 2008 19:06:50 -0000 @@ -0,0 +1,26 @@ + + Index: theme/theme.inc =================================================================== RCS file: theme/theme.inc diff -N theme/theme.inc --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ theme/theme.inc 15 Sep 2008 19:31:27 -0000 @@ -0,0 +1,22 @@ +nid); + + $vars['thumbnail'] = img_assist_display($node, IMAGE_THUMBNAIL); + $vars['path'] = url('img_assist/properties/'. $node->nid); + $vars['title'] = $node->title; +} +