Explorar el Código

added cron setting to settingsOption function

CauseFX hace 4 años
padre
commit
564c4e5fe2
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8 0
      api/functions/option-functions.php

+ 8 - 0
api/functions/option-functions.php

@@ -92,6 +92,14 @@ trait OptionsFunction
 					'settings' => '{tags: true, selectOnClose: true, closeOnSelect: true, allowClear: true}',
 				];
 				break;
+			case 'cron':
+				$settingMerge = [
+					'type' => 'cron',
+					'label' => 'Cron Frequency',
+					'help' => 'You may use either Cron format or - @hourly, @daily, @monthly',
+					'placeholder' => '* * * * *'
+				];
+				break;
 			case 'username':
 				$settingMerge = [
 					'type' => 'input',