Array formatting for Drupal

General discussion on Zend Studio
Post Reply
Posts: 50
Joined: Thu Mar 05, 2009 2:56 pm
Location: Lancing, West Sussex, UK

Array formatting for Drupal

Post by fonant » Fri Jan 06, 2017 12:01 pm

I write code for the Drupal content management framework.

One of the Drupal code formatting requirements is for arrays to be written like this:

$data = array(

with a trailing comma after the last item and the closing parenthesis on a new line.

Is there any way to get Zend Studio to format code like this?

Post Reply