You are here

function example_db_is_active in Coder 7.2

Same name and namespace in other branches
  1. 7 coder_upgrade/tests/old/samples/example.module \example_db_is_active()

File

coder_upgrade/tests/old/samples/example.module, line 574

Code

function example_db_is_active() {

  // db_is_active() -- Change the next line but leave this alone
  if (db_is_active()) {

    // Database is active.
  }

  // function_exists() -- Change the next line but leave this alone
  if (function_exists('db_is_active')) {

    // Do something.
  }
}