if (array_key_exists('alter_display', $specs)) {
$alterFunctions[$tableName . '_' . $field] = $specs['alter_display'];
$alterMap[$tableName . '_' . $field] = $field;
- $alterSpecs[$tableName . '_' . $field] = NULL;
+ $alterSpecs[$tableName . '_' . $field] = $specs;
}
// Add any alters that can be intuited from the field specs.
// So far only boolean but a lot more could be.
if (empty($alterSpecs[$tableName . '_' . $field]) && isset($specs['type']) && $specs['type'] == CRM_Utils_Type::T_BOOLEAN) {
$alterFunctions[$tableName . '_' . $field] = 'alterBoolean';
$alterMap[$tableName . '_' . $field] = $field;
- $alterSpecs[$tableName . '_' . $field] = NULL;
+ $alterSpecs[$tableName . '_' . $field] = $specs;
}
}
}