static function remove_sub($list_id, $user_id) { $comp_params = JComponentHelper::getParams('com_joomdle'); $ml = $comp_params->get('mailing_list_integration'); switch ($ml) { case 'acymailing': JoomdleHelperAcymailing::remove_sub($list_id, $user_id); break; default: // No component selected, do nothing break; } }