Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2178299-1-fix-incorrect-variable.patch | 818 bytes | sandykadam |
Comments
Comment #1
vijaycs85Tagging as novice issue.
Comment #2
sandykadam CreditAttribution: sandykadam commentedFixed incorrect variable of $module. Please check attached patch.
Comment #3
vijaycs85Thanks for the patch @sandykadam. Looks good to me. Lets wait for few more reviews before RTBC.
Comment #4
joachim CreditAttribution: joachim commentedTests pass and it's a simple variable rename -- I think we can call it RTBC.
Comment #5
vijaycs85Thanks! committed 3fe0c58 and pushed to 7.x-2.x.
Comment #6
sandykadam CreditAttribution: sandykadam commentedThanks @vijaycs85 & @joachim