function drush_schema_compare_validate in Schema 7
Same name and namespace in other branches
- 8 schema.drush.inc \drush_schema_compare_validate()
File
- ./
schema.drush.inc, line 76 - Schema drush commands.
Code
function drush_schema_compare_validate($type) {
// Define the possible table types.
$types = array(
'match',
'mismatch',
'missing',
'extra',
);
// Ensure that we were sent a valid one.
if (!in_array($type, $types)) {
return drush_set_error('ERROR_TYPE_INVALID', dt('You must specify a valid table type.'));
}
}