. /** * Lib file for mymobile theme * * @package theme * @subpackage mymobile * @copyright John Stabinger * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ /** * Allow AJAX updating of the user defined columns for tablets or not * * @param moodle_page $page */ function mymobile_initialise_colpos(moodle_page $page) { user_preference_allow_ajax_update('theme_mymobile_chosen_colpos', PARAM_ALPHA); } /** * Get the user preference for columns for tablets or not * * @param string $default * @return mixed */ function mymobile_get_colpos($default = 'on') { return get_user_preferences('theme_mymobile_chosen_colpos', $default); }