You are here

function domain_features_export_wipe_tables_code in Domain Access 7.3

Tells Features export how to process a wipe/rebuild statement to code.

Parameters

&$data: The data for the feature, passed by reference.

$code: The code array to export, passed by reference.

$export: Boolean indicator that we are generator (exporting) or testing code.

$type: A string indicating the type of domain data to export.

Return value

boolean

4 calls to domain_features_export_wipe_tables_code()
domain_alias_features_export_render in domain_alias/domain_alias.features.inc
Implements hook_features_export_render().
domain_conf_features_export_render in domain_conf/domain_conf.features.inc
Implements hook_features_export_render().
domain_features_export_render in ./domain.features.inc
Implements hook_features_export_render().
domain_theme_features_export_render in domain_theme/domain_theme.features.inc
Implements hook_features_export_render().

File

./domain.module, line 3951
Core module functions for the Domain Access suite.

Code

function domain_features_export_wipe_tables_code(&$data, &$code, $export, $type) {
  if (!empty($export) && !empty($data['wipe-domain-tables']) || in_array('wipe-domain-tables', $data)) {
    $code[] = "  \${$type}['wipe-domain-tables'] = 'wipe-domain-tables';";
    return TRUE;
  }
  return FALSE;
}