/** * Controls the order in which features are displayed. The lowest order * number is displayed first. If two items have the same order, the * tiebreak is the alphabetical order of their class names. Default * behaviour is to return order 500. * @return int Ordering index */ public function get_order() { global $PAGE; if ($PAGE->pagetype == 'mod-forumng-discuss') { return 9999999; } else { return parent::get_order(); } }