I figured out a workaround to the hiding of links above. To the block_activities_modules.php file I replaced the code in between these lines with:
$this->content->footer = '';
$this->content->items[] = '<a href="../mod/journal/index.php?id='.$this->course->id.'">My Journals</a>';
$this->content->icons[] = '<img src="'.$CFG->modpixpath.'/journal/icon.gif" height="16" width="16" alt="">';
$this->content->items[] = '<a href="../mod/forum/index.php?id='.$this->course->id.'">All Discussions</a>';
$this->content->icons[] = '<img src="'.$CFG->modpixpath.'/forum/icon.gif" height="16" width="16" alt="">';
return $this->content;
And now I have just the journal and forum links in the activities block!!!
Just hiding the block completely would do the job.
$this->content->footer = '';
$this->content->items[] = '<a href="../mod/journal/index.php?id='.$this->instance->pageid.'">My Journals</a>';
$this->content->icons[] = '<img src="'.$CFG->modpixpath.'/journal/icon.gif" height="16" width="16" alt="">';
$this->content->items[] = '<a href="../mod/forum/index.php?id='.$this->instance->pageid.'">All Discussions</a>';
$this->content->icons[] = '<img src="'.$CFG->modpixpath.'/forum/icon.gif" height="16" width="16" alt="">';
return $this->content;
}
Thanks
Al