You are here

function osmplayer_add_resources in MediaFront 7.2

This function will add osmplayer resources.

Parameters

type $info:

type $type:

1 call to osmplayer_add_resources()
osmplayer_add_core_files in players/osmplayer/osmplayer.module
Adds the core osmplayer static files to the page.

File

players/osmplayer/osmplayer.module, line 243

Code

function osmplayer_add_resources($resources) {
  if (!empty($resources)) {
    if (!empty($resources['js'])) {
      foreach ($resources['js'] as $js => $data) {
        drupal_add_js($js, $data);
      }
    }
    if (!empty($resources['css'])) {
      foreach ($resources['css'] as $css => $data) {
        drupal_add_css($css, $data);
      }
    }
  }
}