You are here

function dialog_js_load in Dialog 7

Check to see if the incoming menu item is able to use dialogs.

@TODO: Move this to Drupal core?

File

./dialog.module, line 90
The Dialog module provides an API for displaying and interacting with jQuery UI Dialog modals.

Code

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