diff options
author | Bharat Mediratta <bharat@menalto.com> | 2013-01-30 12:10:18 -0500 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2013-01-30 12:10:18 -0500 |
commit | 1e4d75c12072b49c3469f18af13bcf3439afc6b0 (patch) | |
tree | d2d77c86e0f37bd9d56b4a86cec390f8119e476e /modules/tag | |
parent | a983e8748e6e6667e968e96f8f0994f49b763b73 (diff) |
Improve the display context API to return a "siblings_callback" field
containing a callback that returns all the siblings. Fixes #1975.
Diffstat (limited to 'modules/tag')
-rw-r--r-- | modules/tag/controllers/tag.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/tag/controllers/tag.php b/modules/tag/controllers/tag.php index 6199c49b..bada9bac 100644 --- a/modules/tag/controllers/tag.php +++ b/modules/tag/controllers/tag.php @@ -86,6 +86,7 @@ class Tag_Controller extends Controller { "previous_item" => $previous_item, "next_item" => $next_item, "sibling_count" => $tag->items_count($where), + "siblings_callback" => array(array($tag, "items"), array()), "breadcrumbs" => array( Breadcrumb::instance($root->title, $root->url())->set_first(), Breadcrumb::instance(t("Tag: %tag_name", array("tag_name" => $tag->name)), |