Comment 3 for bug 1236102

Revision history for this message
Robert Lyon (robertl-9) wrote :

Could we do something like have
    public static function get_order() {
        return array(2 => 'gallery');
    }

in each lib.php file for a blocktype

and then collect up all of them into an array like

$blocklistorder = array(0 => 'filedownload', 1 => 'folder', 2=> 'gallery', 3 => 'image', 4=> 'internalmedia', 5 => 'pdf', 6=> 'html');

then do
$proper_ordered_array = array_merge(array_flip($blocklistorder), $blocklist);

To put them all in the order we want.

Not sure how that will work with 3rd party plugins yet - but will leave this comment as something to ponder.