Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge branch 'MDL-26557' of git://git.luns.net.uk/moodle

  • Loading branch information...
commit 8196e3c08dcd1cb6027cac122fc722e84595108f 2 parents 587a4ee + d8e7d1a
Sam Hemelryk samhemelryk authored

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. +4 2 lib/formslib.php
6 lib/formslib.php
@@ -954,12 +954,14 @@ function repeat_elements($elementobjs, $repeats, $options, $repeathiddenname,
954 954 *
955 955 * @global object
956 956 * @param int $groupid The id of the group of advcheckboxes this element controls
957   - * @param string $buttontext The text of the link. Defaults to "select all/none"
  957 + * @param string $text The text of the link. Defaults to selectallornone ("select all/none")
958 958 * @param array $attributes associative array of HTML attributes
959 959 * @param int $originalValue The original general state of the checkboxes before the user first clicks this element
960 960 */
961   - function add_checkbox_controller($groupid, $buttontext, $attributes, $originalValue = 0) {
  961 + function add_checkbox_controller($groupid, $text = null, $attributes = null, $originalValue = 0) {
962 962 global $CFG;
  963 +
  964 + // Set the default text if none was specified
963 965 if (empty($text)) {
964 966 $text = get_string('selectallornone', 'form');
965 967 }

0 comments on commit 8196e3c

Please sign in to comment.
Something went wrong with that request. Please try again.