Array formatting for Drupal

General discussion on Zend Studio

Array formatting for Drupal

Postby fonant on 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?
Posts: 50
Joined: Thu Mar 05, 2009 2:56 pm
Location: Lancing, West Sussex, UK

Return to Zend Studio

Who is online

Users browsing this forum: Google [Bot] and 4 guests