function ctools_js_to_arg

Provides the default value for %ctools_js.

This allows drupal_valid_path() to work with %ctools_js.

File

./ctools.module, line 968

Code

function ctools_js_to_arg($arg) {
    return empty($arg) || $arg == '%' ? 'nojs' : $arg;
}