You are here

function _visual_select_file_view_has_tag in Visual select file 7

Helper to determine if a View is one of us.

2 calls to _visual_select_file_view_has_tag()
visual_select_file_preprocess_views_view in ./visual_select_file.module
Implements template_preprocess_views_view().
visual_select_file_update_1 in ./visual_select_file.install
Notify user about changes in the admin/selection/popup View.

File

./visual_select_file.module, line 258

Code

function _visual_select_file_view_has_tag($view) {
  if (is_object($view)) {
    $tags = explode(' ', $view->tag);
  }
  elseif (is_string($view)) {
    $tags = explode(' ', $view);
  }
  else {
    $tags = $view;
  }
  return in_array(VISUAL_SELECT_FILE_VIEW_TAG, $tags);
}