+ case 'modify': // When the extension got modified
+ break;
+
+ case 'test': // For testing purposes
+ break;
+
+ case 'init': // Do stuff when extension is initialized
+ // The translation table
+ // @TODO Can this be moved into a database table?
+ $GLOBALS['translation_tables']['yoomedia'] = array(
+ // Error messages
+ 'error_codes' => array(
+ -999 => 'unknown_error',
+ 1 => 'wrong_pass',
+ 2 => 'wrong_sid',
+ 3 => 'website_locked',
+ 4 => 'api_data_error',
+ 5 => 'requests_depleted',
+ 6 => 'zero_result',
+ 7 => 'no_campaigns_with_interface',
+ 10 => 'incomplete_request'
+ ),
+ // For text mails
+ 'textmail' => array(
+ 0 => 'id',
+ 1 => 'name',
+ 2 => 'reload',
+ 3 => 'wait',
+ 4 => 'remain',
+ 5 => 'pay',
+ 6 => 'text'
+ )
+ );
+ break;
+
+ default: // Unknown extension mode
+ logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName()));
+ break;
+}