Function Reference: geodir_duplicate_alert_plugin_activated

Summary

This function has not been documented yet.

Source File

geodir_duplicate_alert_plugin_activated() is located in geodir_ajax_duplicate_alert/geodir_ajax_duplicate_alert.php [Line: 57]

Source Code

function geodir_duplicate_alert_plugin_activated($plugin)
{
	if (!get_option('geodir_installed')) 
	{
		$file = plugin_basename(__FILE__);
		if($file == $plugin) 
		{
			$all_active_plugins = get_option( 'active_plugins', array() );
			if(!empty($all_active_plugins) && is_array($all_active_plugins))
			{
				foreach($all_active_plugins as $key => $plugin)
				{
					if($plugin ==$file)
						unset($all_active_plugins[$key]) ;
				}
			}
			update_option('active_plugins',$all_active_plugins);
			
		}
		
		wp_die(__('<span style="color:#FF0000">There was an issue determining where GeoDirectory Plugin is installed and activated. Please install or activate GeoDirectory Plugin.</span>', GEODIRDUPLICATEALERT_TEXTDOMAIN));
	}
	
}