Commit efdfa623 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Setting default sort order for blocktypes in categories (Bug 1236102)

- Currently ordered as per this comment https://bugs.launchpad.net/mahara/+bug/1236102/comments/1



Change-Id: I95b5eac314dcbf2fef58e8b16836d4a6822b8b40
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 3e0d955f
......@@ -35,7 +35,7 @@ class PluginBlocktypeBlog extends PluginBlocktype {
}
public static function get_categories() {
return array('blog');
return array('blog' => 10000);
}
public static function render_instance(BlockInstance $instance, $editing=false) {
......
......@@ -12,5 +12,5 @@
defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2008040200;
$config->release = '1.0.0';
$config->version = 2008040201;
$config->release = '1.0.1';
......@@ -35,7 +35,7 @@ class PluginBlocktypeBlogpost extends PluginBlocktype {
}
public static function get_categories() {
return array('blog');
return array('blog' => 11000);
}
public static function render_instance(BlockInstance $instance, $editing=false) {
......
......@@ -12,5 +12,5 @@
defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2008040200;
$config->release = '1.0.0';
$config->version = 2008040201;
$config->release = '1.0.1';
......@@ -23,7 +23,7 @@ class PluginBlocktypeRecentposts extends PluginBlocktype {
}
public static function get_categories() {
return array('blog');
return array('blog' => 12000);
}
public static function get_instance_javascript(BlockInstance $bi) {
......
......@@ -12,5 +12,5 @@
defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2008040200;
$config->release = '1.0.0';
$config->version = 2008040201;
$config->release = '1.0.1';
......@@ -25,7 +25,7 @@ class PluginBlocktypeTaggedposts extends SystemBlocktype {
}
public static function get_categories() {
return array('blog');
return array('blog' => 13000);
}
public static function get_instance_javascript(BlockInstance $bi) {
......
......@@ -12,5 +12,5 @@
defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2015011500;
$config->release = '1.1.0';
$config->version = 2015020200;
$config->release = '1.1.1';
......@@ -25,7 +25,7 @@ class PluginBlocktypeComment extends SystemBlocktype {
}
public static function get_categories() {
return array("general");
return array("general" => 14000);
}
public static function get_viewtypes() {
......
......@@ -12,5 +12,5 @@
defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2013100100;
$config->release = '1.0.0';
$config->version = 2013100101;
$config->release = '1.0.1';
......@@ -22,7 +22,7 @@ class PluginBlocktypeFiledownload extends PluginBlocktype {
}
public static function get_categories() {
return array('fileimagevideo');
return array('fileimagevideo' => 3000);
}
public static function render_instance(BlockInstance $instance, $editing=false) {
......
......@@ -12,5 +12,5 @@
defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2010090800;
$config->release = '1.0.0';
$config->version = 2010090801;
$config->release = '1.0.1';
......@@ -35,7 +35,7 @@ class PluginBlocktypeFolder extends PluginBlocktype {
}
public static function get_categories() {
return array('fileimagevideo');
return array('fileimagevideo' => 4000);
}
public static function render_instance(BlockInstance $instance, $editing=false) {
......
......@@ -12,5 +12,5 @@
defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2013120900;
$config->release = '1.0.1';
$config->version = 2013120901;
$config->release = '1.0.2';
......@@ -24,7 +24,7 @@ class PluginBlocktypeGallery extends PluginBlocktype {
}
public static function get_categories() {
return array('fileimagevideo');
return array('fileimagevideo' => 5000);
}
public static function get_instance_javascript(BlockInstance $instance) {
......
......@@ -12,5 +12,5 @@
defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2011060800;
$config->release = '2.0';
$config->version = 2011060801;
$config->release = '2.0.1';
......@@ -22,7 +22,7 @@ class PluginBlocktypeHtml extends PluginBlocktype {
}
public static function get_categories() {
return array('fileimagevideo');
return array('fileimagevideo' => 9000);
}
public static function render_instance(BlockInstance $instance, $editing=false) {
......
......@@ -12,5 +12,5 @@
defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2010090800;
$config->release = '1.0.0';
$config->version = 2010090801;
$config->release = '1.0.1';
......@@ -22,7 +22,7 @@ class PluginBlocktypeInternalmedia extends PluginBlocktype {
}
public static function get_categories() {
return array('fileimagevideo');
return array('fileimagevideo' => 7000);
}
public static function has_config() {
......
......@@ -12,5 +12,5 @@
defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2010090800;
$config->release = '1.0.0';
$config->version = 2010090801;
$config->release = '1.0.1';
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment