Function Reference: geodir_event_plugin_activated
Summary
This function has not been documented yet.
Source File
geodir_event_plugin_activated() is located in geodir_event_manager/geodir_event_manager.php [Line: 90]
Source Code
function geodir_event_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(__('There was an issue determining where GeoDirectory Plugin is installed and activated. Please install or activate GeoDirectory Plugin.', GEODIREVENTS_TEXTDOMAIN));
}
}