Example #1
0
 function testEditModeration()
 {
     // Test the forum edits
     ocf_edit_multi_moderation($this->mod_id, 'Tested', 'Something', NULL, 0, 0, 0, '*', 'Hello');
     // Test the forum was actually created
     $this->assertTrue('Tested' == get_translated_text($GLOBALS['FORUM_DB']->query_value('f_multi_moderations', 'mm_name ', array('id' => $this->mod_id)), $GLOBALS['FORUM_DB']));
 }
 /**
  * Standard aed_module edit actualiser.
  *
  * @param  ID_TEXT		The entry being edited
  */
 function edit_actualisation($id)
 {
     ocf_edit_multi_moderation(intval($id), post_param('name'), post_param('post_text'), post_param_integer('move_to', NULL), post_param_integer('pin_state', 0), post_param_integer('sink_state', 0), post_param_integer('open_state', 0), read_multi_code('forum_multi_code'), post_param('title_suffix'));
 }