<?php

/* Cleanup user settings on uninstall */
function eventit_events_uninstall() {
	delete_option( 'eventit_events_shortcode_options' );
	delete_option( 'eventit_events_options' );

	/* to be re-structured in future versions */
    delete_option( 'eventit_events_organizer_name' );
    delete_option( 'eventit_events_organizer_email' );	
}

/* Activation */
function eventit_events_activate() {
	
	if ( !get_option('eventit_events_organizer_name') ) {

		// Appearance defaults (see includes/style_options.php) with branded button colours
		$eventit_shortcode_options = array_merge( eventit_events_style_defaults(), array(
			'button-info-background' => '#77a823',
			'button-info-font-color' => '#ffffff',
			'button-buy-background'  => '#dd8d13',
			'button-buy-font-color'  => '#ffffff',
		) );

		add_option( 'eventit_events_shortcode_options', $eventit_shortcode_options, '', 'yes' ); 

	}
}

?>