type == "photo") { $csrf = access::csrf_token(); $elements["center"][] = (object)array( "title" => t("Print photo with Digibug"), "class" => "gButtonLink", "icon" => "ui-icon-print", "href" => url::site("digibug/print/$item->id?csrf=$csrf")); } return $elements; } }