File : plugin_exclusions_check.php
<?php
if (!defined('JOMRES_INSTALLER')) exit;
// This file is an example of an exclusion check to ensure that the plugin cannot be installed if another plugin already exists that would conflict with this one. In this example, this plugin would conflict with the "dummy_third_party_plugin_alternative" and therefore if "dummy_third_party_plugin_alternative" already exists then this one should now be installed.
class plugin_check_exclusions
{
function plugin_check_exclusions()
{
$this->test_result = true;
$this->exclusions = array ( "dummy_third_party_plugin_alternative" );
foreach ($this->exclusions as $p)
{
if (file_exists(JOMRESPATH_BASE."/remote_plugins/".$p."/plugin_info.php") )
$this->test_result = false;
}
}
}
?>