summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStella Power2010-03-07 18:23:15 (GMT)
committer Stella Power2010-03-07 18:23:15 (GMT)
commit440d7e867cd44cc6ee7232cdd355fab15e66e927 (patch)
treefea2b0167978ad0cd409136554c9b31e5ef8e1b0
parent56c10d63b8ae2c0b1d442e37bf200b28de22fa10 (diff)
#405794 by sp3boy - added in another cck grouping
-rw-r--r--lightbox2.admin.inc1
-rw-r--r--lightbox2.formatter.inc3
2 files changed, 4 insertions, 0 deletions
diff --git a/lightbox2.admin.inc b/lightbox2.admin.inc
index 8746e42..4e36817 100644
--- a/lightbox2.admin.inc
+++ b/lightbox2.admin.inc
@@ -252,6 +252,7 @@ function lightbox2_general_settings_form() {
1 => t('Group by field name'),
2 => t('Group by node id'),
3 => t('Group by field name and node id'),
+ 4 => t('Group all nodes and fields'),
);
// Add checkbox for emfield emimage grouping.
diff --git a/lightbox2.formatter.inc b/lightbox2.formatter.inc
index 2917929..3806f9c 100644
--- a/lightbox2.formatter.inc
+++ b/lightbox2.formatter.inc
@@ -215,6 +215,9 @@ function theme_imagefield_image_imagecache_lightbox2($view_preset, $field_name,
elseif ($imagefield_grouping == 3 && !empty($item['nid'])) {
$full_rel = $rel .'['. $field_name .'_'. $item['nid'] .']['. $caption .']';
}
+ elseif ($imagefield_grouping == 4 ) {
+ $full_rel = $rel .'[allnodes]['. $caption .']';
+ }
elseif (isset($args['rel_grouping'])) {
$full_rel = $rel .'['. $args['rel_grouping'] .']['. $caption .']';
}