<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://documentation.jomsocial.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://documentation.jomsocial.com/index.php?action=history&amp;feed=atom&amp;title=OnBeforeProfileUpdate</id>
		<title>OnBeforeProfileUpdate - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://documentation.jomsocial.com/index.php?action=history&amp;feed=atom&amp;title=OnBeforeProfileUpdate"/>
		<link rel="alternate" type="text/html" href="http://documentation.jomsocial.com/index.php?title=OnBeforeProfileUpdate&amp;action=history"/>
		<updated>2026-06-05T03:32:43Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.1</generator>

	<entry>
		<id>http://documentation.jomsocial.com/index.php?title=OnBeforeProfileUpdate&amp;diff=351&amp;oldid=prev</id>
		<title>Sinisakrisan: Created page with &quot;===Description=== This event will be triggered before the profile update operation is performed. The plugin can decide whether to proceed with the profile update operation by ...&quot;</title>
		<link rel="alternate" type="text/html" href="http://documentation.jomsocial.com/index.php?title=OnBeforeProfileUpdate&amp;diff=351&amp;oldid=prev"/>
				<updated>2013-01-18T18:42:52Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;===Description=== This event will be triggered before the profile update operation is performed. The plugin can decide whether to proceed with the profile update operation by ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===Description===&lt;br /&gt;
This event will be triggered before the profile update operation is performed. The plugin can decide whether to proceed with the profile update operation by returning true (proceed)/false (stop).&lt;br /&gt;
&lt;br /&gt;
===Params===&lt;br /&gt;
An array with two items, user id and an array of available fieldcodes as array index pointing to the corresponding field value.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
Array&lt;br /&gt;
(&lt;br /&gt;
    [0] =&amp;gt; 1,&lt;br /&gt;
    [1] =&amp;gt; Array (&lt;br /&gt;
                 'FIELD_GENDER' =&amp;gt; 'Male',&lt;br /&gt;
                 'FIELD_BIRTHDATE' =&amp;gt; '',&lt;br /&gt;
                  .&lt;br /&gt;
                  .&lt;br /&gt;
                  .&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Return===&lt;br /&gt;
boolean (true/false)&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
function onBeforeProfileUpdate( $arrItems ) &lt;br /&gt;
{&lt;br /&gt;
    /* &lt;br /&gt;
     * perform your required pre-requisite handler here &lt;br /&gt;
     * return true if you want the profile to continue the update operation&lt;br /&gt;
     * return false to stop the update operation&lt;br /&gt;
     */&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sinisakrisan</name></author>	</entry>

	</feed>