$obj->contentcollection_type = $cc_info->type;
            break;
        case 'right':
            $obj->uid = $uid;
            if ($moduleName == 'UserPhotoModule') {
                $obj->block_type = 'UserPhotoBlock';
            }
            if ($moduleName != 'AdsByGoogleModule') {
                $obj->block_type = HOMEPAGE;
            }
            break;
    }
}
$page = new PageRenderer("setup_module", PAGE_EDIT_MEDIA, "Edit Media", "container_three_column.tpl", "header.tpl", PUB, HOMEPAGE, $network_info);
if (!empty($error)) {
    $msg_tpl =& new Template(CURRENT_THEME_FSPATH . "/display_message.tpl");
    $msg_tpl->set('message', $error);
    $page->add_module("middle", "top", $msg_tpl->fetch());
}
$css_array = get_network_css();
if (is_array($css_array)) {
    foreach ($css_array as $key => $value) {
        $page->add_header_css($value);
    }
}
$css_data = inline_css_style();
if (!empty($css_data['newcss']['value'])) {
    $css_data = '<style type="text/css">' . $css_data['newcss']['value'] . '</style>';
    $page->add_header_html($css_data);
}
echo $page->render();
function uihelper_get_network_style()
{
    // for accessing the Page-Render variable
    global $page;
    $css_array = get_network_css();
    if (is_array($css_array)) {
        foreach ($css_array as $key => $value) {
            $page->add_header_css($value);
        }
    }
    $css_data = inline_css_style();
    if (!empty($css_data['newcss']['value'])) {
        $css_data = '<style type="text/css">' . $css_data['newcss']['value'] . '</style>';
        $page->add_header_html($css_data);
    }
}