Commit 3b90636a authored by Kristina Hoeppner's avatar Kristina Hoeppner
Browse files

Bug 1926519: Restrict the block types to use on 'Portfolio completion'

behatnotneeded

Change-Id: Ie6426e1fb1d7fa206f94553ac9435327f32a3951
parent 28fa960a
......@@ -26,6 +26,10 @@ class PluginBlocktypeSocialprofile extends MaharaCoreBlocktype {
return array('internal' => 27000);
}
public static function get_viewtypes() {
return array('dashboard', 'portfolio', 'profile');
}
public static function render_instance(BlockInstance $instance, $editing=false, $versioning=false) {
$configdata = $instance->get('configdata');
......
......@@ -13,5 +13,5 @@
defined('INTERNAL') || die();
$config = new stdClass();
$config->version = 2014011601;
$config->release = '1.0.1';
$config->version = 2021042900;
$config->release = '1.0.2';
......@@ -25,6 +25,10 @@ class PluginBlocktypePlans extends MaharaCoreBlocktype {
return array('general' => 22000);
}
public static function get_viewtypes() {
return array('dashboard', 'portfolio', 'profile');
}
/**
* Optional method. If exists, allows this class to decide the title for
* all blockinstances of this type
......
......@@ -12,5 +12,5 @@
defined('INTERNAL') || die();
$config = new stdClass();
$config->version = 2019091600;
$config->release = '0.9.1';
$config->version = 2021042900;
$config->release = '0.9.2';
......@@ -25,6 +25,10 @@ class PluginBlocktypeEntireresume extends MaharaCoreBlocktype {
return array('internal' => 29000);
}
public static function get_viewtypes() {
return array('dashboard', 'portfolio', 'profile');
}
public static function get_blocktype_type_content_types() {
return array('entireresume' => array('resume'));
}
......
......@@ -12,5 +12,5 @@
defined('INTERNAL') || die();
$config = new stdClass();
$config->version = 2008040201;
$config->release = '1.0.1';
$config->version = 2021042900;
$config->release = '1.0.2';
......@@ -25,6 +25,10 @@ class PluginBlocktypeResumefield extends MaharaCoreBlocktype {
return array('internal' => 30000);
}
public static function get_viewtypes() {
return array('dashboard', 'portfolio', 'profile');
}
public static function get_blocktype_type_content_types() {
return array('resumefield' => array('resume'));
}
......
......@@ -12,5 +12,5 @@
defined('INTERNAL') || die();
$config = new stdClass();
$config->version = 2008040201;
$config->release = '1.0.1';
$config->version = 2021042900;
$config->release = '1.0.2';
......@@ -44,6 +44,11 @@ class PluginBlocktypeExternalfeed extends MaharaCoreBlocktype {
public static function get_categories() {
return array('external' => 34000);
}
public static function get_viewtypes() {
return array('dashboard', 'portfolio', 'profile', 'grouphomepage');
}
public static function postinst($prevversion) {
if ($prevversion == 0) {
if (is_postgres()) {
......
......@@ -12,5 +12,5 @@
defined('INTERNAL') || die();
$config = new stdClass();
$config->version = 2016021200;
$config->release = '1.0.6';
$config->version = 2021042900;
$config->release = '1.0.7';
......@@ -28,6 +28,10 @@ class PluginBlocktypeGoogleApps extends MaharaCoreBlocktype {
return array('external' => 36000);
}
public static function get_viewtypes() {
return array('dashboard', 'portfolio', 'profile', 'grouphomepage');
}
public static function get_css_icon_type($blockname) {
return 'icon-brand';
}
......
......@@ -13,5 +13,5 @@
defined('INTERNAL') || die();
$config = new stdClass();
$config->version = 2011051701;
$config->release = '1.0.9';
$config->version = 2021042900;
$config->release = '1.0.10';
......@@ -26,6 +26,10 @@ class PluginBlocktypeRecentForumPosts extends MaharaCoreBlocktype {
return array('general' => 23000);
}
public static function get_viewtypes() {
return array('dashboard', 'portfolio', 'profile', 'grouphomepage');
}
private static function get_group(BlockInstance $instance, $versioning=false) {
static $groups = array();
......
......@@ -13,5 +13,5 @@
defined('INTERNAL') || die();
$config = new stdClass();
$config->version = 2010090802;
$config->release = '1.0.1';
$config->version = 2021042900;
$config->release = '1.0.2';
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