You are here

function patterns_utils_is_cli in Patterns 7.2

Same name and namespace in other branches
  1. 7 includes/ \patterns_utils_is_cli()

Returns TRUE if patterns is executed via cli

Useful for detecting if patterns is running via drush

Return value

Boolean TRUE, if the script is executed in cli

2 calls to patterns_utils_is_cli()
patterns_export_to_file in patterns_export/
Exports a pattern as a donwlodable text file
patterns_export_to_zip in patterns_export/
Exports patterns as a donwlodable Zip archive


includes/, line 398
Collectiion of general purpose functions.


function patterns_utils_is_cli() {
  return php_sapi_name() == "cli";