Views "purge" handler

Classified Ads defines a Views 3 field handler for the ad purge date.

This handler displays the date at which a Classified Ad will be purged, in the format customized for all expiration dates on the site. This format is defined as a default variable, not configurable on the settings screen, but which can be overriden in the settings.php file, by declaring it like this:

$conf['date-format'] = t('%d/%m/%Y');

The format placeholders are those defined for PHP date function. Note that the default format is a localized string of the module.

Default views

Since Views are so simple to create, the Classified Ads module does not define any. However, when you define your own views and if you do not have a site module of your own, you can export them from Views UI and place them as files named (something).php in the views directory of the module, wrapped in <?php ?> tags, : they will then be automatically defined as default views by the module, allowing you to avoid the performance cost of keeping views in the database and allowing you to tinker with your views while maintaining the ability to revert to a known version.