Skip to content

Commit

Permalink
Merge branch 'MDL-28614' of git://github.com/timhunt/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Oct 17, 2011
2 parents cb284e9 + 46e4056 commit ebb9cd2
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions question/type/questiontypebase.php
Original file line number Diff line number Diff line change
Expand Up @@ -863,22 +863,9 @@ public function get_possible_responses($questiondata) {
}

/**
* Like @see{get_html_head_contributions}, but this method is for CSS and
* JavaScript required on the question editing page question/question.php.
*/
public function get_editing_head_contributions() {
// By default, we link to any of the files styles.css, styles.php,
// script.js or script.php that exist in the plugin folder.
// Core question types should not use this mechanism. Their styles
// should be included in the standard theme.
$this->find_standard_scripts();
}

/**
* Utility method used by @see{get_html_head_contributions} and
* @see{get_editing_head_contributions}. This looks for any of the files
* script.js or script.php that exist in the plugin folder and ensures they
* get included.
* Utility method used by {@link qtype_renderer::head_code()}. It looks
* for any of the files script.js or script.php that exist in the plugin
* folder and ensures they get included.
*/
public function find_standard_scripts() {
global $PAGE;
Expand Down

0 comments on commit ebb9cd2

Please sign in to comment.