You are here

public function Popup_announcement_block::when_visible in Pop-up announcement 7

Get list with visit numbers, when announcement must be visible.

Return value

array Array or boolean - list with visit numbers or TRUE if announcement must be appears at every visit

File

./popup_announcement.module, line 383
Primarily Drupal hooks and custom functions for creating block with pop-up announcement.

Class

Popup_announcement_block
Class for work with block with announcements

Code

public function when_visible($bid) {
  $b = $this
    ->get_block($bid);
  return empty($b['number_visit']) ? TRUE : explode(',', $b['number_visit']);
}