コード例 #1
0
/**
 * 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;
}
コード例 #2
0
ファイル: func.php プロジェクト: OneataBogdan/lead_coriolan
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);
        }
    }
}