block-settings MDL-23365 Removed the expansion on hover settings which was deprecated and no longer supported

This commit is contained in:
Sam Hemelryk
2010-07-20 05:23:10 +00:00
parent f4136193b7
commit 4b2eef2b50
3 changed files with 0 additions and 16 deletions
-8
View File
@@ -139,12 +139,4 @@ class block_settings extends block_base {
$this->contentgenerated = true;
return true;
}
function html_attributes() {
$attributes = parent::html_attributes();
if (!empty($this->config->enablehoverexpansion) && $this->config->enablehoverexpansion == 'yes') {
$attributes['class'] .= ' block_js_expansion';
}
return $attributes;
}
}
-7
View File
@@ -37,13 +37,6 @@ class block_settings_edit_form extends block_edit_form {
$yesnooptions = array('yes'=>get_string('yes'), 'no'=>get_string('no'));
$mform->addElement('select', 'config_enablehoverexpansion', get_string('enablehoverexpansion', $this->block->blockname), $yesnooptions);
if (empty($this->block->config->enablehoverexpansion) || $this->block->config->enablehoverexpansion=='no') {
$mform->getElement('config_enablehoverexpansion')->setSelected('no');
} else {
$mform->getElement('config_enablehoverexpansion')->setSelected('yes');
}
$mform->addElement('select', 'config_enabledock', get_string('enabledock', $this->block->blockname), $yesnooptions);
if (empty($this->block->config->enabledock) || $this->block->config->enabledock=='yes') {
$mform->getElement('config_enabledock')->setSelected('yes');
@@ -24,6 +24,5 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
$string['enablehoverexpansion'] = 'Enable mouseover expansion of this block';
$string['enabledock'] = 'Allow the user to dock this block';
$string['pluginname'] = 'Settings';