You are here

function file_aliases_filefield_views_data_alter in File Aliases 6

Implements file_aliases_hook_views_data_alter().

File

modules/filefield.inc, line 34
Contains FileField module integration for the File Aliases module.

Code

function file_aliases_filefield_views_data_alter(&$data) {
  foreach (content_fields() as $field) {
    if ($field['module'] == 'filefield' && isset($data['node_data_' . $field['field_name']])) {
      $data['node_data_' . $field['field_name']][$field['field_name'] . '_fid']['field']['handler'] = 'file_aliases_content_handler_field_multiple';
    }
  }
}