function testEditNewsletter() { // Test the forum edits edit_newsletter($this->news_id, 'Thanks', 'Thank you'); // Test the forum was actually created $this->assertTrue('Thanks' == get_translated_text($GLOBALS['SITE_DB']->query_value('newsletters', 'title', array('id' => $this->news_id)))); }
/** * Standard aed_module edit actualiser. * * @param ID_TEXT The entry being edited */ function edit_actualisation($id) { $title = post_param('title'); $description = post_param('description'); edit_newsletter(intval($id), $title, $description); }