You are here

function _skinr_attached_to_library in Skinr 8.2

Helper function to turn skin plugins attached arrays into a library.

See also

skinr_library_info_build()

1 call to _skinr_attached_to_library()
skinr_library_info_build in ./skinr.module
Implements hook_library_info_build().

File

./skinr.module, line 97
Handles core Skinr functionality.

Code

function _skinr_attached_to_library($attached, $path) {

  // CSS.
  if (isset($attached['css'])) {
    foreach ($attached['css'] as &$category) {
      _skinr_fix_path($category, $path);
    }
  }

  // Javascript.
  if (isset($attached['js'])) {
    _skinr_fix_path($attached['js'], $path);
  }
  return $attached;
}