ctools_js_load

6 ctools.module ctools_js_load($js)
7 ctools.module 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

contributions/ctools/ctools.module, line 653
CTools primary module file.

Code

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