public function check_for_updates_button(\core\update\checker $checker, $reloadurl) {

        $output = '';

        if ($checker->enabled()) {
            $output .= $this->container_start('checkforupdates');
            $output .= $this->single_button(
                new moodle_url($reloadurl, array('fetchupdates' => 1)),
                get_string('checkforupdates', 'core_plugin')
            );
            if ($timefetched = $checker->get_last_timefetched()) {
                $timefetched = userdate($timefetched, get_string('strftimedatetime', 'core_langconfig'));
                $output .= $this->container(get_string('checkforupdateslast', 'core_plugin', $timefetched), 'lasttimefetched');
            }
            $output .= $this->container_end();
        }

        return $output;
    }