function date_views_views_data_alter(&$data) {
  // Mark all the core date handlers as date fields.
  // This will identify all handlers that directly use the _date handlers,
  // will not pick up any that extend those handlers.
  foreach ($data as $module => &$table) {

The views data array is not keyed by module, but by tablename.

CommentFileSizeAuthor
#2 2178299-1-fix-incorrect-variable.patch818 bytessandykadam
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vijaycs85’s picture

Issue tags: +Novice

Tagging as novice issue.

sandykadam’s picture

Status: Active » Needs review
FileSize
818 bytes

Fixed incorrect variable of $module. Please check attached patch.

vijaycs85’s picture

Thanks for the patch @sandykadam. Looks good to me. Lets wait for few more reviews before RTBC.

joachim’s picture

Status: Needs review » Reviewed & tested by the community

Tests pass and it's a simple variable rename -- I think we can call it RTBC.

vijaycs85’s picture

Status: Reviewed & tested by the community » Fixed

Thanks! committed 3fe0c58 and pushed to 7.x-2.x.

sandykadam’s picture

Thanks @vijaycs85 & @joachim

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.