? .DS_Store
? .svn
? imagefield_assist.patch
? imagefield_assist.views.patch
? drupalimage/.svn
? drupalimage/css/.svn
? drupalimage/images/.svn
? drupalimage/langs/.svn
? includes/.svn
? includes/imagefield_assist.views_default.inc
? theme/.svn
Index: imagefield_assist.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/imagefield_assist/imagefield_assist.install,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 imagefield_assist.install
--- imagefield_assist.install	28 Jul 2009 05:56:45 -0000	1.1.2.1
+++ imagefield_assist.install	25 Oct 2009 10:49:55 -0000
@@ -53,4 +53,3 @@ function imagefield_assist_update_6200()
   }
   return $ret;
 }
-
Index: imagefield_assist.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/imagefield_assist/imagefield_assist.module,v
retrieving revision 1.1.2.4
diff -u -p -r1.1.2.4 imagefield_assist.module
--- imagefield_assist.module	6 Aug 2009 20:09:59 -0000	1.1.2.4
+++ imagefield_assist.module	25 Oct 2009 10:49:55 -0000
@@ -11,6 +11,16 @@
  */
 
 /**
+ * Implementation of hook_views_api().
+ */
+function imagefield_assist_views_api() {
+  return array(
+    'api' => 2,
+    'path' => drupal_get_path('module', 'imagefield_assist') .'/includes',
+  );
+}
+
+/**
  * Implementation of hook_help().
  */
 function imagefield_assist_help($path, $arg) {
@@ -719,7 +729,7 @@ function imagefield_assist_imagecache_de
  *   Array of Image stdClass objects
  */
 function imagefield_assist_load_imagefields( $filters=array() ) {
-  
+ 
   module_load_include('inc', 'content', 'includes/content.crud');
   
   // Field Instances of ImageField
@@ -804,32 +814,10 @@ function imagefield_assist_load_imagefie
  *
  */
 function imagefield_assist_thumbs() {
-  global $user;
-    
-  $output = '';
-  $images = imagefield_assist_load_imagefields();
-  
-  if (!empty($images)) {
-  
-    $output .="<table><tbody><tr>";
-    
-    foreach ($images as $n => $img) {
-      $output .=
-        '<td>'.
-        l(
-          theme('imagecache', 'ifa_thumbnail', file_create_path($img->path)),
-          'imagefield_assist/properties/'. $img->fid,
-          array('html' => TRUE)
-        )
-        .'</td>';
-    
-      // Line break
-      if ( ($n+1) % 4 == 0 ) $output .= '</tr><tr>';
-    }
-    $output .="</tr></tbody></table>";
-  
-  }
-  else {
+
+  $view = views_get_view('imagefield_assist_browser');
+  $output = $view->preview();
+  if (empty($output)) {
     $output = t('No Images added yet. Click the upload button above to start.');
   }
   
@@ -1458,6 +1446,9 @@ function imagefield_assist_map_delete($n
  */
 function imagefield_assist_map_load($nid) {
   $imagemap = array();
+  if (!db_table_exists('image')) {
+    return $imagemap;
+  }
   $result = db_query('SELECT * FROM {image} i INNER JOIN {imagefield_assist_map} iam ON i.nid = iam.iid WHERE i.nid = %d', $nid);
   while ($data = db_fetch_object($result)) {
     $imagemap[] = $data->nid;
