ctools_js_load

  1. drupal
    1. 6 ctools.module function
    2. 7 ctools.module function
Drupal 7 ctools_js_load($js)

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

sites/all/modules/ctools/ctools.module, line 653
CTools primary module file.

Code

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