function testEditemoticon() { // Test the forum edits ocf_edit_emoticon($old_code = 'X:)', $code = 'Z:D', $theme_img_code = 'images/smile.jpg', $relevance_level = 2, $use_topics = 0, $is_special = 0); // Test the forum was actually created $this->assertTrue('Z:D' == $GLOBALS['FORUM_DB']->query_value('f_emoticons', 'e_code ', array('e_code' => 'Z:D'))); }
/** * Standard aed_module edit actualiser. * * @param ID_TEXT The entry being edited */ function edit_actualisation($id) { require_code('themes2'); $theme_img_code = get_theme_img_code('ocf_emoticons', false, 'file', 'theme_img_code', $GLOBALS['FORUM_DB']); ocf_edit_emoticon($id, post_param('code'), $theme_img_code, post_param_integer('relevance_level'), post_param_integer('use_topics', 0), post_param_integer('is_special', 0)); $this->new_id = post_param('code'); }