Convert ad display functions to template files

Created on 13 July 2010, about 15 years ago
Updated 19 September 2024, 10 months ago

Convert ad display functions to template files (.tpl.php) for easier theming / enable preprocess functions.

The only problem with template files is that they are slower than functions for creating content. I have left the old function in place in case anyone needs to revert because of performance issues. To change between the template and the function, the file / template lines in the ad_display array in function ad_theme in ad.module need to be commented / uncommented.

This attachment covers the ad_display function in ad.module (general formats for the ad block, not for individual ads). I will post further patches / files for html ads and image ads.

Feature request
Status

Closed: outdated

Version

2.2

Component

ad module

Created by

🇬🇧United Kingdom SweeneyTodd

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇩🇪Germany lrwebks Porta Westfalica

    Drupal 6 is EOL and no longer supported. Closing this as outdated for that reason. Thanks for your contribution!

Production build 0.71.5 2024