original_string: public function get_defaultsetting() {
          $adminroot =  admin_get_root(false, false);
          if (!empty($adminroot->custom_defaults)) {
              $plugin = is_null($this->plugin) ? 'moodle' : $this->plugin;
              if (isset($adminroot->custom_defaults[$plugin])) {
                  if (array_key_exists($this->name, $adminroot->custom_defaults[$plugin])) { // null is valid value here ;-)
                      return $adminroot->custom_defaults[$plugin][$this->name];
                  }
              }
          }
          return $this->defaultsetting;
      }
code: public function get_defaultsetting() {
          $adminroot =  admin_get_root(false, false);
          if (!empty($adminroot->custom_defaults)) {
              $plugin = is_null($this->plugin) ? 'moodle' : $this->plugin;
              if (isset($adminroot->custom_defaults[$plugin])) {
                  if (array_key_exists($this->name, $adminroot->custom_defaults[$plugin])) { // null is valid value here ;-)
                      return $adminroot->custom_defaults[$plugin][$this->name];
                  }
              }
          }
          return $this->defaultsetting;
      }
code_tokens: public function get_defaultsetting ( ) { $ adminroot = admin_get_root ( false , false ) ; if ( ! empty ( $ adminroot -> custom_defaults ) ) { $ plugin = is_null ( $ this -> plugin ) ? 'moodle' : $ this -> plugin ; if ( isset ( $ adminroot -> custom_defaults [ $ plugin ] ) ) { if ( array_key_exists ( $ this -> name , $ adminroot -> custom_defaults [ $ plugin ] ) ) { // null is valid value here ;-) return $ adminroot -> custom_defaults [ $ plugin ] [ $ this -> name ] ; } } } return $ this -> defaultsetting ; }
docstring: Returns default setting if exists
  @return mixed array or string depending on instance; NULL means no default, user must supply
docstring_tokens: Returns default setting if exists