Active
Project:
Views PHP
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Jan 2016 at 17:11 UTC
Updated:
16 Jan 2016 at 09:50 UTC
Jump to comment: Most recent
In Drupal 8, I'm using the dev version of Views PHP.
This code (below, which selects records based on month and day) works fine in Drupal 7, but nothing happens in Drupal 8.
Do you know if this is my code or your module?
===============
$out=node_load($row->field_event_date);
$contentdate = $out->field_event_date['und'][0]['value'];
$inpdate = date_create($contentdate);
$comdate = date_format($inpdate, 'd-m');
$currentdate = date('d-m');
if($currentdate==$comdate)
{
return false;
}
else
{
return true;
}
===============
Comments
Comment #2
id.tarzanych commentedThis port was developed for Drupal 8 beta10
We need to check general module functionality with 8.0.3