/** * Check if mod_rewrite is active and clean up templates cache */ function fn_settings_actions_addons_discussion_home_page_testimonials(&$new_value, $old_value) { if (function_exists('fn_create_empty_thread')) { fn_create_empty_thread($new_value); } return true; }
function fn_discussion_update_company(&$company_data, &$company_id, &$lang_code, &$action) { if ($action == 'add') { $type = Registry::get('addons.discussion.home_page_testimonials'); if ($type != 'D') { fn_create_empty_thread($type, $company_id); } } }