Permalink
Browse files

Follow-on to 1e4d75c for #1975.

Create a siblings() function which pulls together the siblings_callback
function and makes it a more palatable API.
  • Loading branch information...
1 parent ee0a0d7 commit 49dd0994df6f6709dcd9ea6971beb13c68a99cf0 @bharat bharat committed Jan 31, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 modules/gallery/libraries/Theme_View.php
View
4 modules/gallery/libraries/Theme_View.php
@@ -86,6 +86,10 @@ public function item() {
return $this->item;
}
+ public function siblings() {
+ return call_user_func_array($this->siblings_callback[0], $this->siblings_callback[1]);
+ }
+
public function tag() {
return $this->tag;
}

0 comments on commit 49dd099

Please sign in to comment.