function better_messages_get_skins in Better Messages 6.2
1 call to better_messages_get_skins()
File
- ./
better_messages.module, line 45
Code
function better_messages_get_skins() {
$default_theme = variable_get('theme_default', 'none');
// Call skins in modules skins directory
$default_skins_directory = drupal_get_path('module', 'better_messages') . '/skins';
$files = file_scan_directory($default_skins_directory, '\\.css$');
// Now we call skins in the default theme skins directory
$theme_skins_directory = drupal_get_path('theme', $default_theme) . '/skins';
$theme_files = file_scan_directory($theme_skins_directory, '\\.css$');
// Merge the options and make the names readable.
$files = array_merge($files, $theme_files);
$skins = array();
foreach ($files as $file) {
$skins[$file->filename] = drupal_ucfirst($file->name);
}
ksort($skins);
return $skins;
}