Commit a5812949 authored by Son Nguyen's avatar Son Nguyen Committed by Gerrit Code Review
Browse files

Merge "Adding the watchlist block to default template on new sites"

parents 2717ebf3 88db27dd
......@@ -101,4 +101,12 @@ class PluginBlocktypeWatchlist extends SystemBlocktype {
public static function should_ajaxify() {
return true;
}
/**
* We need a default title for this block, so that the watchlist block
* on the dashboard is translatable.
*/
public static function get_instance_title(BlockInstance $instance) {
return get_string('watchlistblocktitle');
}
}
......@@ -1122,6 +1122,7 @@ $string['usersdashboard'] = "%s's dashboard";
$string['dashboarddescription'] = 'Your dashboard page is what you see on the homepage when you first log in. Only you have access to it.';
$string['topicsimfollowing'] = "Topics I am following";
$string['inboxblocktitle'] = 'Inbox';
$string['watchlistblocktitle'] = "Pages I am following";
$string['mymessages'] = 'My messages';
$string['pleasedonotreplytothismessage'] = "Please do not reply to this message.";
......
......@@ -2587,6 +2587,15 @@ function install_system_dashboard_view() {
'maxitems' => '5',
),
),
array(
'blocktype' => 'watchlist',
'title' => '',
'row' => 1,
'column' => 2,
'config' => array(
'count' => '10',
),
),
);
$installed = get_column_sql('SELECT name FROM {blocktype_installed}');
$weights = array(1 => 0, 2 => 0);
......
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