Skip to content

Commit

Permalink
MDL-49553 core_block: final deprecation of config_save()
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjnelson committed Jan 6, 2016
1 parent ef343c3 commit 94cec93
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions blocks/moodleblock.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -344,16 +344,9 @@ function has_config() {
* You don't need to override this if you 're satisfied with the above
*
* @deprecated since Moodle 2.9 MDL-49385 - Please use Admin Settings functionality to save block configuration.
* @todo MDL-49553 This will be deleted in Moodle 3.1
* @param array $data
* @return boolean
*/
function config_save($data) {
debugging('config_save($data) is deprecated, use Admin Settings functionality to save block configuration.', DEBUG_DEVELOPER);
foreach ($data as $name => $value) {
set_config($name, $value);
}
return true;
throw new coding_exception('config_save() can not be used any more, use Admin Settings functionality to save block configuration.');
}

/**
Expand Down

0 comments on commit 94cec93

Please sign in to comment.