function after_install() { global $CFG; // initialize the global configuration $global_config = array("block_moodle_notifications_email_channel" => 1, "block_moodle_notifications_sms_channel" => 1, "block_moodle_notifications_rss_channel" => 1, "block_moodle_notifications_frequency" => 12, "block_moodle_notifications_email_notification_preset" => 1, "block_moodle_notifications_sms_notification_preset" => 1); return parent::config_save($global_config); }
/** * Default behavior: save all variables as $CFG properties * You don't need to override this if you 're satisfied with the above * * @param array $data * @return boolean */ function config_save($data) { print_object($data); die; return parent::config_save($data); }