diff --git a/checklistapi.module b/checklistapi.module index c229177..0aead68 100644 --- a/checklistapi.module +++ b/checklistapi.module @@ -267,6 +267,7 @@ function checklistapi_sort_array(array $array) { */ function checklistapi_strtolowercamel($string) { $string = str_replace('_', ' ', $string); + $string = str_replace('-', ' ', $string); $string = ucwords($string); $string = str_replace(' ', '', $string); // Lowercase first character. lcfirst($string) would be nicer, but let's not