function views_field_field_views_data_alter in Views Field 7
Implements hook_field_views_data_alter().
File
- ./
views_field.module, line 98 - Provides primary Drupal hook implementations.
Code
function views_field_field_views_data_alter(&$data, $field, $module) {
if (empty($field['settings']['views_base_table']) || empty($field['settings']['views_base_columns'])) {
return;
}
$base_tables = array(
'field_data_' . $field['field_name'],
'field_revision_' . $field['field_name'],
);
foreach ($base_tables as $base_table) {
if (isset($data[$base_table])) {
module_load_include('inc', 'views_field');
views_field_add_base_table($data, $field, $module, $base_table);
}
}
}