This patch does two things. I'm trying to make small patches, but sometimes two things get changed at once.

1) In the admin UI, drupal_goto() is used after banners are edited, added, or deleted and after the cache is reset. The error messages are still displayed. The destination URL is admin/banner.

2) The _banner_show() function becomes theme_banner_show() so themes can alter the way banners are displayed. Themes can even customize the display per banner position by detecting $banner->position.

The "(link)" for text ads is found in _banner_show(). So if someone doesn't like this behavior, they can override theme_banner_show() now.

CommentFileSizeAuthor
banner.3.patch4.95 KBnjivy

Comments

jeremy’s picture

Applied, thanks. :)

Anonymous’s picture