You are here

function advpoll_update_views in Advanced Poll 6.2

2 calls to advpoll_update_views()
advpoll_insert in ./advpoll.module
Implementation of hook_insert().
advpoll_update in ./advpoll.module
Implementation of hook_update().

File

./advpoll.module, line 780
Advanced Poll - a sophisticated polling module for voting, elections, and group decision-making.

Code

function advpoll_update_views() {

  // MW truncating the cache_views table causes views to be refreshed.  This is necessary
  // to allow dynamically created poll view blocks to be made available for display around the site
  // after the content manager has added/edited a binary poll.  Note that the cache_clear method
  // would not work on this table.
  db_query("TRUNCATE TABLE cache_views");
}