function demo_load_include in Demonstration site (Sandbox / Snapshot) 6
Same name and namespace in other branches
- 7 demo.admin.inc \demo_load_include()
Load database specific functions.
2 calls to demo_load_include()
- demo_enum_tables in ./
demo.admin.inc - Returns a list of tables in the active database.
- _demo_reset in ./
demo.admin.inc - Reset site using snapshot.
File
- ./
demo.admin.inc, line 374 - Demonstration Site administrative pages
Code
function demo_load_include() {
global $db_type;
$engine = $db_type == 'mysqli' ? 'mysql' : $db_type;
if (module_load_include('inc', 'demo', 'database_' . $engine . '_dump') === FALSE) {
drupal_set_message(t('@engine support not implemented yet.', array(
'@engine' => ucfirst($engine),
)), 'error');
return FALSE;
}
return TRUE;
}