<?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=OnAfterPhotoDelete</id>
		<title>OnAfterPhotoDelete - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://documentation.jomsocial.com/index.php?action=history&amp;feed=atom&amp;title=OnAfterPhotoDelete"/>
		<link rel="alternate" type="text/html" href="http://documentation.jomsocial.com/index.php?title=OnAfterPhotoDelete&amp;action=history"/>
		<updated>2026-06-04T16:16:27Z</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=OnAfterPhotoDelete&amp;diff=1840&amp;oldid=prev</id>
		<title>Patricia Schmidt: /* Description */</title>
		<link rel="alternate" type="text/html" href="http://documentation.jomsocial.com/index.php?title=OnAfterPhotoDelete&amp;diff=1840&amp;oldid=prev"/>
				<updated>2013-03-09T07:16:32Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Description&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 07:16, 9 March 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Description===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Description===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This event &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;trigger &lt;/del&gt;after the photo is deleted.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This event &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;is triggered &lt;/ins&gt;after the photo is deleted.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;@since 1.6&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;@since 1.6&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Patricia Schmidt</name></author>	</entry>

	<entry>
		<id>http://documentation.jomsocial.com/index.php?title=OnAfterPhotoDelete&amp;diff=332&amp;oldid=prev</id>
		<title>Sinisakrisan: Created page with &quot;===Description=== This event trigger after the photo is deleted.  @since 1.6  ===Params=== *'''Photo''' - array, consist of photo object  &lt;syntaxhighlight lang=&quot;php&quot;&gt; CTablePh...&quot;</title>
		<link rel="alternate" type="text/html" href="http://documentation.jomsocial.com/index.php?title=OnAfterPhotoDelete&amp;diff=332&amp;oldid=prev"/>
				<updated>2013-01-18T17:16:30Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;===Description=== This event trigger after the photo is deleted.  @since 1.6  ===Params=== *&amp;#039;&amp;#039;&amp;#039;Photo&amp;#039;&amp;#039;&amp;#039; - array, consist of photo object  &amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt; CTablePh...&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 trigger after the photo is deleted.&lt;br /&gt;
&lt;br /&gt;
@since 1.6&lt;br /&gt;
&lt;br /&gt;
===Params===&lt;br /&gt;
*'''Photo''' - array, consist of photo object&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
CTablePhoto Object&lt;br /&gt;
(&lt;br /&gt;
    [id] =&amp;gt; 13&lt;br /&gt;
    [albumid] =&amp;gt; 5&lt;br /&gt;
    [name] =&amp;gt; &lt;br /&gt;
    [caption] =&amp;gt; cwindow_type&lt;br /&gt;
    [permissions] =&amp;gt; 0&lt;br /&gt;
    [created] =&amp;gt; 2009-10-20 04:52:14&lt;br /&gt;
    [thumbnail] =&amp;gt; images/photos/63/5/thumb_ff5e436b8148d10a7750abab.jpg&lt;br /&gt;
    [image] =&amp;gt; images/photos/63/5/ff5e436b8148d10a7750abab.jpg&lt;br /&gt;
    [creator] =&amp;gt; 63&lt;br /&gt;
    [published] =&amp;gt; 1&lt;br /&gt;
    [original] =&amp;gt; images/originalphotos/63/5/ff5e436b8148d10a7750abab.jpg&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;
===Example===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
function onAfterPhotoDelete($photos) &lt;br /&gt;
{&lt;br /&gt;
        $photoObj     = $photos[0];&lt;br /&gt;
        $photoCaption = $photoObj-&amp;gt;caption;&lt;br /&gt;
 &lt;br /&gt;
	$message  = 'The photo ' . $photoCaption . ' with the id [' . $photoObj-&amp;gt;id . '] has been removed by user [' . $photoObj-&amp;gt;creator . ']';&lt;br /&gt;
 &lt;br /&gt;
        $mailfrom = 'system@jomsocial.com';&lt;br /&gt;
        $fromname = 'www.jomsocial.com';&lt;br /&gt;
        $email    = 'admin@jomsocial.com';&lt;br /&gt;
        $subject  = 'Photo ' . $photoCaption . ' removed';&lt;br /&gt;
 &lt;br /&gt;
        JUtility::sendMail($mailfrom, $fromname, $email, $subject, $message);&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>