item()) { return; } $albumID = $theme->item->is_album() ? $theme->item->id : $theme->item->parent_id; $block = new Block(); $block->css_id = "g-updates-block"; $block->title = t("Updates"); $block->content = new View("latestupdates_block.html"); $block->content->update_links = array( "Entire Gallery" => url::site("latestupdates/updates"), "This Album" => url::site("latestupdates/albums/$albumID") ); return $block; } }