clang:delete-user-language( $config as element(lang:user-languages), $lang as xs:string ) as element(lang:user-languages)
This function returns user languages configuration with any existing configuration item for a given language removed.
Parameters | |
---|---|
config | A custom language configuration specification, typically as returned from one of the custom language module functions. |
lang | An ISO language code, such as "en". |
xquery version "1.0-ml"; import module namespace clang = "http://marklogic.com/xdmp/custom-language" at "/MarkLogic/custom-language.xqy"; let $config := clang:language-config-read() let $config := clang:delete-user-language($config,"ca") (: NOTE: Calling clang:language-config-write causes a restart :) return clang:language-config-write($config)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.