<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=CustomActionPreparationCode</id>
	<title>CustomActionPreparationCode - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=CustomActionPreparationCode"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=CustomActionPreparationCode&amp;action=history"/>
	<updated>2026-08-24T04:13:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=CustomActionPreparationCode&amp;diff=680&amp;oldid=prev</id>
		<title>Admin: 2 revisions imported</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=CustomActionPreparationCode&amp;diff=680&amp;oldid=prev"/>
		<updated>2016-04-06T20:03:35Z</updated>

		<summary type="html">&lt;p&gt;2 revisions imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Scrip]] field that is &amp;#039;&amp;#039;&amp;#039;only&amp;#039;&amp;#039;&amp;#039; used when [[ScripAction]] is &amp;#039;User-Defined&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
You should put code into this field which prepare action to commit(cleanup) phase. Code has access to $self object that is instance of &amp;#039;RT::Action::UserDefined&amp;#039; class. Code should return true value on success and false on error. [[CustomActionCleanupCode]] would execute &amp;lt;u&amp;gt;only&amp;lt;/u&amp;gt; if prepare code returned true value.&lt;br /&gt;
&lt;br /&gt;
See also: [[WriteCustomAction]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>