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.
In creating a Zen subtheme, I am allowed to put a "." in the machine-readable name. It writes a implementation of hook_theme() function in the generated template.php with the period character in its name, which causes the error
Parse error: syntax error, unexpected T_DNUMBER, expecting '('
Comment | File | Size | Author |
---|---|---|---|
#2 | sysname.patch | 1.14 KB | Garrett Albright |
Comments
Comment #1
Ifex CreditAttribution: Ifex commentedSimilarly with the hyphen, and I guess other characters.
Comment #2
Garrett Albright CreditAttribution: Garrett Albright commentedFixed with the addition of a single character to a regular expression. Committed. Thanks