You are here

function gallery_assist_get_includes in Gallery Assist 6

Load the needed css- and js-files form submodule lightboxes.

File

./gallery_assist.module, line 5339
Drupal content type with gallery functionality.

Code

function gallery_assist_get_includes($hilfo = array()) {
  if (empty($hilfo)) {
    return;
  }
  if (count($hilfo['data']['css'])) {
    foreach ($hilfo['data']['css'] as $k => $v) {
      if ($v) {
        drupal_add_css($k);
      }
    }
  }
  if (count($hilfo['data']['js'])) {
    foreach ($hilfo['data']['js'] as $k => $v) {
      if ($v) {
        drupal_add_js($k);
      }
    }
  }
  if (count($hilfo['data']['selector'])) {
    foreach ($hilfo['data']['selector'] as $k => $v) {
      if ($v) {
        drupal_add_js($k);
      }
    }
  }
}