? image_gallery_module_views.patch
? views
Index: image_gallery.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/image/contrib/image_gallery/image_gallery.module,v
retrieving revision 1.31
diff -u -p -r1.31 image_gallery.module
--- image_gallery.module	17 Jan 2009 22:29:47 -0000	1.31
+++ image_gallery.module	20 Mar 2009 23:15:15 -0000
@@ -374,6 +374,13 @@ function image_gallery_theme() {
     'image_gallery' => array(
       'arguments' => array('galleries' => NULL, 'images' => NULL),
     ),
+    # joachim
+    'image_gallery_count' => array(
+      'arguments' => array('count' => 0),
+    ),
+    'image_gallery_updated' => array(
+      'arguments' => array('timestamp' => 0),
+    ),
     'image_gallery_img' => array(
       'arguments' => array('image' => NULL, 'size' => NULL),
     ),
@@ -467,3 +474,28 @@ function _image_gallery_get_vid() {
 
   return $vid;
 }
+
+/**
+ * Implementation of hook_views_api().
+ */
+function image_gallery_views_api() {
+  return array(
+    'api' => 2,
+    'path' => drupal_get_path('module', 'image_gallery') .'/views',
+  );
+}
+
+### joachim
+/**
+ * Theme the count of gallery items.
+ */
+function theme_image_gallery_count($count) {
+  return "There are $count images in this gallery.";
+}
+
+/**
+ * Theme the gallery last updated line.
+ */
+function theme_image_gallery_updated($timestamp) {
+  return '<p class="last">'. t('%date', array('%date' => format_date($timestamp))) ."</p>\n";
+}
