Seller Reports in Blocks

ebeyrent - December 9, 2008 - 21:28
Project:Ubercart Marketplace
Version:5.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I like the reports that uc_marketplace has to offer, but I'd like to put together a custom landing page for sellers with these reports displayed as blocks. Setting up the blocks is easy enough by calling the functions that produce the reports as block content:

<?php
function mymodule_block($op='list', $delta=0, $edit=array()) {
  global
$user;
 
$blocks = array();
  switch(
$op) {
    case
'list':
     
$blocks[]['info'] = t('Seller Sales Summary');
     
$blocks[]['info'] = t('Seller Products List');
      return
$blocks;
     
    case
'view':
      switch(
$delta) {
        case
0:
     
$block = array(
           
'subject' => t(''),
       
'content' => mp_reports_summary($user->uid)
          );
          break;
        case
1:
     
$block = array(
           
'subject' => t(''),
       
'content' => mp_products_selling($user->uid)
          );
          break;
      }
      return
$block;
  }
}
?>

However, these functions are writing breadcrumbs that point to the user account page.

Any way to override the breadcrumbs?

 
 

Drupal is a registered trademark of Dries Buytaert.