Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When trying to update a a setting in theme_hues/configure the site shows a warning about passing an array as string in theme_hues_css_clear_files() as its passing $files instead of $file to the file delete function..
/**
*
* Delete all CSS files from our directory.
*/
function theme_hues_css_clear_files() {
$dir = _theme_hues_css_dirpath();
$files = glob("$dir/*.css");
foreach ($files as $file) {
file_unmanaged_delete("$dir/$files");
}
}
file_unmanaged_delete should be:
file_unmanaged_delete("$dir/$file");