Closed (fixed)
Project:
Strongarm
Version:
6.x-2.0
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
24 Nov 2010 at 20:54 UTC
Updated:
9 Dec 2010 at 10:40 UTC
For now we have code in exported Features which looks like:
$export = array();
$strongarm = new stdClass;
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'comment_anonymous_test';
$strongarm->value = 0;
$export['comment_anonymous_test'] = $strongarm;
$strongarm = new stdClass;
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'comment_controls_test';
$strongarm->value = '3';
$export['comment_controls_test'] = $strongarm;
$strongarm = new stdClass;
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'comment_default_mode_test';
$strongarm->value = '4';
Something like this would be more logical:
$export = array();
$strongarm = new stdClass;
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'comment_anonymous_test';
$strongarm->value = 0;
$export['comment_anonymous_test'] = $strongarm;
$strongarm = new stdClass;
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'comment_controls_test';
$strongarm->value = '3';
$export['comment_controls_test'] = $strongarm;
$strongarm = new stdClass;
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'comment_default_mode_test';
$strongarm->value = '4';
Ctool's export.inc file is used to generate this code. I'm not sure, though, if this spacing issue is a ctools or a strongarm issue.
Comments
Comment #1
wulff commentedAFAICT this is a Features issue which has been fixed: #925332: Cleanup exportables formatting in ctools_component_features_export_render()