<smms_extension type="smms_ext" version="1.5.0">
	<name>DESCRIPTION Metadata Module</name>
	<author>Joel Bassett</author>
	<creationDate>10/01/2010</creationDate>
	<copyright>(C) 2005-2010 Australian Quality Solutions Group. All rights reserved.</copyright>
	<license>AGPLv3 - http://www.aqsg.com.au/products/simple-meta-management-suite/licence.html</license>
	<authorEmail>joel@aqsg.com.au</authorEmail>
	<authorUrl>http://www.aqsg.com.au</authorUrl>
	<version>1.5.4 [Dragonbane]</version>
	<description>Extension to manage DESCRIPTION metadata</description>
	<files>
		<filename smms_ext="ext.description">ext.description.php</filename>
	</files>
	<smms_install>
		<database>
			<category>basic</category>
			<databasename>#__smms_description</databasename>
			<pregmatch>~&lt;meta[^&gt;]*name=["|']description["|'][^&gt;]*content=["|'](.*)["|']\s*/&gt;~Ui</pregmatch>
			<pregmatch2></pregmatch2>
			<html>  &lt;meta name="description" content="{VALUE}" /&gt;</html>
			<formfield>&lt;textarea rows="9" name="description" id="description" cols="50"&gt;{VALUE}&lt;/textarea&gt;</formfield>
			<databasefield>c.custom_description</databasefield>
			<sqlselect>c.custom_description AS custom_description, c.description AS description</sqlselect>
			<sqljoin>{DATABASENAME} AS c ON c.site_id = a.id</sqljoin>
			<sqlupdatewithvalue>UPDATE {DATABASENAME} SET custom_description = '{SWITCH}', description = '{VALUE}' WHERE site_id = '{ID}'</sqlupdatewithvalue>
			<sqlupdatenovalue>UPDATE {DATABASENAME} SET custom_description = '{SWITCH}' WHERE site_id = '{ID}'</sqlupdatenovalue>
		</database>
	</smms_install>
    <settings>

    </settings>
    <default_values>
		<default_value name="use_defaultdescription" value="0">{CHOICELIST}</default_value>
		<default_value name="default_description" value="">&lt;textarea rows="9" name="default_description" id="default_description" cols="50"&gt;{VALUE}&lt;/textarea&gt;</default_value>
    </default_values>
</smms_extension>