Commit 03ef7701 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Less wordy default titles on group home page


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 8496c3f4
...@@ -34,5 +34,6 @@ $string['nogroupstochoosefrom'] = 'Sorry, no groups to choose from'; ...@@ -34,5 +34,6 @@ $string['nogroupstochoosefrom'] = 'Sorry, no groups to choose from';
$string['poststoshow'] = 'Maximum number of posts to show'; $string['poststoshow'] = 'Maximum number of posts to show';
$string['poststoshowdescription'] = 'Between 1 and 100'; $string['poststoshowdescription'] = 'Between 1 and 100';
$string['recentforumpostsforgroup'] = "Recent Forum Posts for %s"; $string['recentforumpostsforgroup'] = "Recent Forum Posts for %s";
$string['recentforumposts'] = "Recent Forum Posts";
?> ?>
...@@ -1788,25 +1788,25 @@ function xmldb_core_upgrade($oldversion=0) { ...@@ -1788,25 +1788,25 @@ function xmldb_core_upgrade($oldversion=0) {
$blocktypes = array( $blocktypes = array(
array( array(
'blocktype' => 'groupinfo', 'blocktype' => 'groupinfo',
'title' => get_string('title', 'blocktype.groupinfo'), 'title' => '',
'column' => 1, 'column' => 1,
'config' => null, 'config' => null,
), ),
array( array(
'blocktype' => 'recentforumposts', 'blocktype' => 'recentforumposts',
'title' => get_string('title', 'blocktype.recentforumposts'), 'title' => get_string('recentforumposts', 'blocktype.recentforumposts'),
'column' => 1, 'column' => 1,
'config' => null, 'config' => null,
), ),
array( array(
'blocktype' => 'groupviews', 'blocktype' => 'groupviews',
'title' => get_string('title', 'blocktype.groupviews'), 'title' => get_string('Views', 'view'),
'column' => 1, 'column' => 1,
'config' => null, 'config' => null,
), ),
array( array(
'blocktype' => 'groupmembers', 'blocktype' => 'groupmembers',
'title' => get_string('title', 'blocktype.groupmembers'), 'title' => get_string('Members', 'group'),
'column' => 1, 'column' => 1,
'config' => null, 'config' => null,
), ),
......
...@@ -1385,31 +1385,31 @@ function install_system_grouphomepage_view() { ...@@ -1385,31 +1385,31 @@ function install_system_grouphomepage_view() {
$blocktypes = array( $blocktypes = array(
array( array(
'blocktype' => 'groupinfo', 'blocktype' => 'groupinfo',
'title' => get_string('title', 'blocktype.groupinfo'), 'title' => '',
'column' => 1, 'column' => 1,
'config' => null, 'config' => null,
), ),
array( array(
'blocktype' => 'recentforumposts', 'blocktype' => 'recentforumposts',
'title' => get_string('title', 'blocktype.recentforumposts'), 'title' => get_string('recentforumposts', 'blocktype.recentforumposts'),
'column' => 1, 'column' => 1,
'config' => null, 'config' => null,
), ),
array( array(
'blocktype' => 'groupviews', 'blocktype' => 'groupviews',
'title' => get_string('title', 'blocktype.groupviews'), 'title' => get_string('Views', 'view'),
'column' => 1, 'column' => 1,
'config' => null, 'config' => null,
), ),
array( array(
'blocktype' => 'groupmembers', 'blocktype' => 'groupmembers',
'title' => get_string('title', 'blocktype.groupmembers'), 'title' => get_string('Members', 'group'),
'column' => 1, 'column' => 1,
'config' => null, 'config' => null,
), ),
); );
$installed = get_column_sql('SELECT name FROM {blocktype_installed}'); $installed = get_column_sql('SELECT name FROM {blocktype_installed}');
$weights = array(1 => 0, 2 => 0); $weights = array(1 => 0);
foreach ($blocktypes as $blocktype) { foreach ($blocktypes as $blocktype) {
if (in_array($blocktype['blocktype'], $installed)) { if (in_array($blocktype['blocktype'], $installed)) {
$weights[$blocktype['column']]++; $weights[$blocktype['column']]++;
......
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