Esempio n. 1
0
 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))));
 }
Esempio n. 2
0
 /**
  * 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);
 }