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.
hey
how about add support for creating variables through UI (and perhaps API)?
to quickly create variables for usage in custom PHP code in nodes, blocks, views, page manager or panels, for example
maybe it could be integrated (API) with devel for bulk generation of variables.
Comments
Comment #1
lpalgarvio CreditAttribution: lpalgarvio commentedsee #755730: Duplicate effort?
Comment #2
sachbearbeiter CreditAttribution: sachbearbeiter commented+1
Comment #3
bblake CreditAttribution: bblake commentedI'm not sure that strongarm is the appropriate place for a GUI to create variables. Can you give me a little more description of what you'd like to see? ( i.e. ablility to create variables, edit variables you've created, edit all variables, delete variables, etc? )
Comment #4
lpalgarvio CreditAttribution: lpalgarvio commentedsince strongarm already provides management of exported variables, i think it would be useful if it allowed managing the other variables, with all kinds of operations as you described, and not just create variable.
i know strongarm is a an API, but if it doesn't bloats much the code for the module, i think here would be a good place for a GUI, instead of another module doing that job.
Comment #5
bblake CreditAttribution: bblake commentedI think there are a number of ways variables can be managed ( drush vset, devel, variable_set() etc ), and so adding that ability to strongarm would both be sort of duplicate effort and also deviate from what strongarm does, which is function as an API.
Comment #5.0
bblake CreditAttribution: bblake commenteddevel