get_manager(); if ($oldversion < 2008072401) { $processor = new stdClass(); $processor->name = 'email'; if (!$DB->record_exists('message_processors', array('name' => $processor->name)) ){ $DB->insert_record('message_processors', $processor); } /// email savepoint reached upgrade_plugin_savepoint(true, 2008072401, 'message', 'email'); } // Moodle v2.1.0 release upgrade line // Put any upgrade step following this // Moodle v2.2.0 release upgrade line // Put any upgrade step following this return true; }