You are here

function content_views_arguments in Content Construction Kit (CCK) 5

Implementation of hook_views_arguments().

Exposes all fields as filterable arguments.

File

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

Code

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