You are here

function skinr_ui_skin_get_files in Skinr 6.2

AJAX Callback function to fetch all css or js files from a particular skin.

Parameters

$skin: The name of the skin.

$value: The classes for this skin.

Return value

An array of file data in JSON format.

1 string reference to 'skinr_ui_skin_get_files'
skinr_ui_menu in ./skinr_ui.module
Implementation of hook_menu().

File

./skinr_ui.module, line 733

Code

function skinr_ui_skin_get_files($skin, $value = '') {
  $skins = array(
    $skin => $value,
  );
  return drupal_json(array(
    'css' => skinr_skin_get_files($skins, 'css'),
    'js' => skinr_skin_get_files($skins, 'js'),
  ));
  exit;
}