Parse error: syntax error, unexpected '[' in /home/example/public_html/sites/all/modules/any_menu_path/any_menu_path.module on line 212

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

uno created an issue. See original summary.

felribeiro’s picture

Change the array creation.

felribeiro’s picture

Status: Active » Needs review
michael_wojcik’s picture

FileSize
996 bytes

Made additions to felribeiro's patch. Errors affects line 212, line 220, and line 225 of any_menu_path.module, not just line 212.

michael_wojcik’s picture

Altered previous patch to correct for same error in any_menu_path.install on line 24.

vmachado’s picture

Status: Needs review » Reviewed & tested by the community

Suggested patch is working fine.

hanoii’s picture

Status: Reviewed & tested by the community » Fixed

Good catch, this works for php 5.4+ but d7 is php5.3.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

michael_wojcik’s picture

Updating credit for this commit. Thanks for the review and commit!