function testEditWelcomeEmail() { // Test the forum edits ocf_edit_welcome_email($this->email_id, "test_mail1", "test_subject1", "test content1", 1262671781, 0); // Test the forum was actually created $this->assertTrue('test_mail1' == $GLOBALS['SITE_DB']->query_value('f_welcome_emails', 'w_name ', array('id' => $this->email_id))); }
/** * Standard aed_module edit actualiser. * * @param ID_TEXT The entry being edited */ function edit_actualisation($id) { $name = post_param('name'); $subject = post_param('subject'); $text = post_param('text'); $send_time = post_param_integer('send_time'); if (get_value('welcome_nw_choice') === '1') { $newsletter = post_param_integer('newsletter', NULL); } else { $newsletter = post_param_integer('newsletter', 0); } ocf_edit_welcome_email(intval($id), $name, $subject, $text, $send_time, $newsletter); }