function testEditusergroup() { // Test the forum edits edit_usergroup_subscription($this->usr_grp_id, 'Edit_group', 'new edit', '122', 3, '12', 0, 1, 1, ' ', ' ', ' '); // Test the forum was actually created $this->assertTrue(3 == $GLOBALS['FORUM_DB']->query_value('f_usergroup_subs', 's_length', array('id' => $this->usr_grp_id))); }
/** * Standard aed_module edit actualiser. * * @param ID_TEXT The entry being edited */ function edit_actualisation($id) { $title = post_param('title'); // if ((strpos($title,';')!==false) || (strpos($title,',')!==false) || (strpos($title,'=')!==false)) // warn_exit(do_lang_tempcode('PRODUCT_NAME_SPECIAL_CHARS')); edit_usergroup_subscription(intval($id), $title, post_param('description'), post_param('cost'), post_param_integer('length'), post_param('length_units'), post_param_integer('group_id'), post_param_integer('uses_primary', 0), post_param_integer('enabled', 0), post_param('mail_start'), post_param('mail_end'), post_param('mail_uhoh')); }