1 drupal.inc drupal_is_cli()

Detects whether the current script is running in a command-line environment.

Deprecated

since 1.0.0

See also

backdrop_is_cli()

Related topics

File

core/includes/drupal.inc, line 497
Contains constants and function wrappers for Drupal 7.x compatibility.

Code

function drupal_is_cli() {
  return backdrop_is_cli();
}