You are here

function content_views_tables in Content Construction Kit (CCK) 5

Implementation of hook_views_tables().

Exposes all fields to the views system.

File

./content_views.inc, line 13
Interface between content.module and views.module.

Code

function content_views_tables() {
  $field_types = _content_field_types();
  $return = array();
  foreach (content_fields() as $field) {
    $module = $field_types[$field['type']]['module'];
    $result = module_invoke($module, 'field_settings', 'tables', $field);
    if (empty($result)) {
      $result = content_views_field_tables($field);
    }
    if (is_array($result)) {
      $return = array_merge($return, $result);
    }
  }
  return $return;
}