You are here

function theme_views_accordion_display_item in Views Accordion 7

Same name and namespace in other branches
  1. 6 views_accordion.module \theme_views_accordion_display_item()

Only returns true the first time it's called for an id.

Parameters

string $id: A unique view id.

Return value

bool TRUE for the first time called for a given $id FALSE for each time after that

File

./views_accordion.module, line 83
Provide an accordion display style for Views.

Code

function theme_views_accordion_display_item($id) {
  static $display = array();
  if (!isset($display[$id])) {
    $display[$id] = FALSE;
  }
  $output = $display[$id];
  if ($display[$id] == FALSE) {
    $display[$id] = TRUE;
  }
  return $output;
}