You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							18 lines
						
					
					
						
							499 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							18 lines
						
					
					
						
							499 B
						
					
					
				| <?php | |
| 
 | |
| class InstructionsPorter extends MigrationTask { | |
|     var $description = "Converting custom form instructions to HTML"; | |
| 
 | |
|     function run($max_time) { | |
|         foreach (DynamicForm::objects() as $F) { | |
|             $F->instructions = Format::htmlchars($F->get('instructions')); | |
|             $F->save(); | |
|         } | |
|         foreach (DynamicFormField::objects() as $F){ | |
|             $F->hint = Format::htmlchars($F->get('hint')); | |
|             $F->save(); | |
|         } | |
|     } | |
| } | |
| 
 | |
| return 'InstructionsPorter';
 |