domain_prefix_table_exists

Versions
domain
domain_prefix_table_exists($prefix, $table)

Does a table exist -- we use this to bypass Drupal's default table prefixing check.

Parameters

$prefix The table prefix used with this domain. Optional.

$table The name of the table being acted upon.

▾ 4 functions call domain_prefix_table_exists()

domain_prefix_domainpath in domain_prefix/domain_prefix.path.inc
Implement hook_domainpath().
domain_prefix_drop_records in domain_prefix/domain_prefix.admin.inc
Drop tables created by this module.
domain_prefix_form in domain_prefix/domain_prefix.admin.inc
The table prefixing page for a domain.
domain_prefix_form_submit in domain_prefix/domain_prefix.admin.inc
FormsAPI for domain_prefix_form.

Code

domain_prefix/domain_prefix.module, line 165

<?php
function domain_prefix_table_exists($prefix, $table) {
  return db_table_exists(db_escape_table($prefix . $table));
}
?>

Contact

  • agentrickard [at] gmail [dot] com

Donations

My Amazon.com Wish List