You are here

function demo_load_include in Demonstration site (Sandbox / Snapshot) 7

Same name and namespace in other branches
  1. 6 demo.admin.inc \demo_load_include()

Load database specific functions.

3 calls to demo_load_include()
demo_enum_tables in ./demo.admin.inc
Returns a list of tables in the active database.
_demo_dump in ./demo.admin.inc
Create a new snapshot.
_demo_reset in ./demo.admin.inc
Reset site using snapshot.

File

./demo.admin.inc, line 447
Demonstration Site administrative pages.

Code

function demo_load_include() {
  $engine = db_driver();
  if (!module_load_include('inc', 'demo', 'database_' . $engine . '_dump')) {
    drupal_set_message(t('@database is not supported yet.', array(
      '@database' => ucfirst($engine),
    )), 'error');
    return FALSE;
  }
  return TRUE;
}