Patch (to be ported)
Project:
Features
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Mar 2012 at 17:44 UTC
Updated:
12 Mar 2015 at 19:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mpotter commentedHere is the patch:
Comment #2
mpotter commentedHere is a new version that also prevents Features from creating an empty file when no content was written to it.
Comment #3
rypit commentedTested this with patch on a myriad of features: created, diffed, updated and reverted exportables of context, boxes, views, menus, taxonomies and fields. All work as intended.
Comment #4
hefox commentedThe if else could just be simplified as
$code = array_filter($code); before the foreach
Not sure if worth needs working it for that.
Comment #5
mpotter commentedYep, good suggestion. Here is the new patch.
Comment #6
mpotter commentedCommitted to 7179946
Comment #7
mpotter commented