You are here

function mediafront_views_get_id in MediaFront 7.2

Returns a media player id that won't collide with other ids.

Parameters

$view:

Return value

string

2 calls to mediafront_views_get_id()
mediafront_plugin_style_player::render in views/mediafront_plugin_style_player.inc
Renders the media player.
mediafront_views_pre_render in views/mediafront.views.inc
Implementation of hook_views_pre_render().

File

views/mediafront.views.inc, line 88
mediafront.views.inc Built in plugins for Views output handling.

Code

function mediafront_views_get_id($view) {
  static $instance = 0;
  return 'mediafront_' . $view->name . '_' . ++$instance;
}