<?php

class Ithemes_Sync_Verb_ITSEC_Manage_Malware_Schedule_Settings extends Ithemes_Sync_Verb {
	public static $name = 'itsec-manage-malware-schedule-settings';
	public static $description = '';

	public function run( $arguments ) {
		$settings = ITSEC_Modules::get_settings( 'malware-scheduling' );

		if ( isset( $settings['enabled'] ) ) {
			unset( $settings['enabled'] );
		}

		$settings = array_merge( $settings, $arguments );

		ITSEC_Modules::set_settings( 'malware-scheduling', $settings );

		return true;
	}
}
