Closed (fixed)
Project:
OG User Roles
Version:
5.x-2.8
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
10 May 2008 at 18:58 UTC
Updated:
24 May 2008 at 19:02 UTC
Created oglogo page callback to allow printing of group logo on "Printer-Friendly" pages. This code (copied from logotools.module) will print the existing group logo for a page. http://drupal.org/node/256423
Created code in og_user_roles_all_roles() to give this page a group context:
// oglogo (printer friendly)
//
// http://www.mysite.com/oglogo
if (arg(0) == 'oglogo') {
if ($_SESSION['og_last']) {
$location = 202;
$gid = $_SESSION['og_last']->nid;
// Set group context.
$group_node = node_load($gid);
og_set_group_context($group_node);
}
}
Comments
Comment #1
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.