You are here

function ctools_js_load in Chaos Tool Suite (ctools) 6

Same name and namespace in other branches
  1. 7 ctools.module \ctools_js_load()

Check to see if the incoming menu item is js capable or not.

This can be used as %ctools_js as part of a path in hook menu. CTools ajax functions will automatically change the phrase 'nojs' to 'ajax' when it attaches ajax to a link. This can be used to autodetect if that happened.

File

./ctools.module, line 673
CTools primary module file.

Code

function ctools_js_load($js) {
  if ($js == 'ajax') {
    return TRUE;
  }
  return 0;
}