function plugin_activation()
 {
     if (version_compare(PHP_VERSION, '5.2.6', '<')) {
         $this->error_txt = 'The Emma For WordPress plugin requires at least PHP 5.2.6.';
     }
     if (version_compare(get_bloginfo('version'), '3.1', '<')) {
         $this->error_txt = 'The Emma For WordPress plugin requires at least WordPress version 3.1.';
     }
     // probably should do some checking before sending this off...
     add_action('admin_notices', array(&$this, 'version_require'));
     // load default options into database on activation
     // add_option( $option, $value, $depreciated, $autoload );
     add_option(Account_Information::$key, Account_Information::get_settings_defaults(), '', 'yes');
     add_option(Form_Setup::$key, Form_Setup::get_settings_defaults(), '', 'yes');
     add_option(Form_Custom::$key, Form_Custom::get_settings_defaults(), '', 'yes');
 }
 function __construct()
 {
     add_action('admin_init', array(&$this, 'register_settings'));
     add_action('wp_ajax_emma_add_group', array(&$this, 'emma_add_group_callback'));
     self::$settings = $this->get_settings_options();
 }