You are here

function mediafront_invoke_node in MediaFront 6

Same name and namespace in other branches
  1. 6.2 mediafront.module \mediafront_invoke_node()
  2. 7 mediafront.module \mediafront_invoke_node()

Invoke a hook_playlist_node() operation in all modules.

Parameters

$node: A list of all nodes in the playlist.

$args: An array of arguments used for this node.

3 calls to mediafront_invoke_node()
mediafront_get_node in ./mediafront.module
Gets a node in the player format.
mediafront_views_pre_render in ./mediafront.module
Views pre-render
theme_mediafront_player in ./mediafront.module
Implement the theme for a node media player.

File

./mediafront.module, line 462

Code

function mediafront_invoke_node($node, $args) {
  $additions = array();
  if ($node) {
    foreach (module_implements('playlist_node') as $name) {
      $function = $name . '_playlist_node';
      $additions = mediafront_playlist_node_merge($additions, $function($node, $args));
    }
  }
  return $additions;
}