I know this issue was posted almost 2 years ago, but is there a way to print the date that a node expire?

I have tried the original:

<?php if ($expire): ?><?php print $expire_flag ?><?php endif; ?>
A change suggested:
<?php if ($node->$expire_flag): ?><?php print $node->$expire ?><?php endif; ?>
and then a different kind:
<?php if ($node->$expire): ?><?php print $node->$expire ?><?php endif; ?>

I do know that there is a node with an expiration date because I can see it in the database table. So I am imagining that this is more of an issue with syntax or I just don't have the variabls correctly named. Any help would be appreciated.

Comments

yraber’s picture

Try this :

print format_date(_auto_expire_get_expire($node->nid));

marcvangend’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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