Commit b473db7d authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Add site option to switch off viewmicroheaders



Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 4a3e02d9
......@@ -238,6 +238,12 @@ $siteoptionform = array(
'defaultvalue' => get_config('tagssideblockmaxtags'),
'rules' => array('integer' => true, 'minvalue' => 0, 'maxvalue' => 1000),
),
'viewmicroheaders' => array(
'type' => 'checkbox',
'title' => get_string('smallviewheaders', 'admin'),
'description' => get_string('smallviewheadersdescription', 'admin'),
'defaultvalue' => get_config('viewmicroheaders'),
),
)
);
......@@ -262,7 +268,7 @@ function siteoptions_submit(Pieform $form, $values) {
'allowpublicviews', 'allowpublicprofiles', 'creategroups', 'createpublicgroups', 'searchplugin',
'registration_sendweeklyupdates', 'institutionexpirynotification', 'institutionautosuspend',
'captchaonregisterform', 'captchaoncontactform', 'showselfsearchsideblock', 'showtagssideblock',
'tagssideblockmaxtags', 'country'
'tagssideblockmaxtags', 'country', 'viewmicroheaders',
);
$oldlanguage = get_config('lang');
$oldtheme = get_config('theme');
......
......@@ -193,6 +193,8 @@ $string['updatesiteoptions'] = 'Update site options';
$string['usersallowedmultipleinstitutions'] = 'Users allowed multiple institutions';
$string['usersallowedmultipleinstitutionsdescription'] = 'If checked, users can be members of several institutions at the same time';
$string['usersseenewthemeonlogin'] = 'Other users will see the new theme the next time they log in.';
$string['smallviewheaders'] = 'Small View page headers';
$string['smallviewheadersdescription'] = 'If enabled, a small header and site navigation block will be displayed when viewing or editing Views.';
$string['viruschecking'] = 'Virus checking';
$string['viruscheckingdescription'] = 'If checked, virus checking will be enabled for all uploaded files using ClamAV';
$string['whocancreategroups'] = 'Who can create Groups';
......
......@@ -1331,6 +1331,10 @@ function xmldb_core_upgrade($oldversion=0) {
)");
}
if ($oldversion < 2010012700) {
set_config('viewmicroheaders', 1);
}
return $status;
}
......
......@@ -671,6 +671,7 @@ function core_install_firstcoredata_defaults() {
set_config('showtagssideblock', 1);
set_config('tagssideblockmaxtags', 20);
set_config('usersallowedmultipleinstitutions', 1);
set_config('viewmicroheaders', 1);
// install the applications
$app = new StdClass;
......
......@@ -28,7 +28,7 @@
defined('INTERNAL') || die();
$config = new StdClass;
$config->version = 2010011300;
$config->version = 2010012700;
$config->release = '1.3.0dev';
$config->minupgradefrom = 2008040200;
$config->minupgraderelease = '1.0.0 (release tag 1.0.0_RELEASE)';
......
Supports Markdown
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