Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
ctools_var_export() exports a numeric value as a quoted string.
Patch coming.
Comment | File | Size | Author |
---|---|---|---|
#5 | ctools-2576251-5.patch | 858 bytes | Snehal Brahmbhatt |
#2 | 2576251.ctools.var-export-quoted-string.patch | 859 bytes | joachim |
Comments
Comment #2
joachim CreditAttribution: joachim commentedThis is code taken from Features' version of the same function, features_var_export().
Probably needs testing with a variety of different imports, to make sure we're not introducing this bug: #1721926: Field Instance Export "weight" - brings me in a Override ping/pong - quotes and no quotes.
Comment #3
kenorb CreditAttribution: kenorb commentedComment #4
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe 3 year old patch to export.inc does not apply to the latest ctools 7.x-1.x-dev.
Comment #5
Snehal Brahmbhatt CreditAttribution: Snehal Brahmbhatt at AddWeb Solution Pvt. Ltd. commented@Chris2, Here's the patch for the same, I reroll it for ctools 7.x-1.x-dev, hope this will help you.
Thanks!..
Comment #6
Snehal Brahmbhatt CreditAttribution: Snehal Brahmbhatt at AddWeb Solution Pvt. Ltd. commentedComment #7
joelpittetI like this but it may be too disruptive to existing exports so I'm hesitant to commit it.