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.
I didn't look up how to do this, and there's quite a few name/title thingies.
Comment | File | Size | Author |
---|---|---|---|
#10 | 941800-machine-names.patch | 7.89 KB | merlinofchaos |
#9 | 941800_admin_nameV2.patch | 1.73 KB | aspilicious |
#3 | 941800_admin_name.patch | 3.36 KB | aspilicious |
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedHere's a patch for Views that shows us how: http://drupal.org/node/1011220#comment-3888838
Comment #2
aspilicious CreditAttribution: aspilicious commentedI'm on it
Comment #3
aspilicious CreditAttribution: aspilicious commentedSadly this wasn't as trivial as the views patch.
I don't know what the exist functions are for these functions.
Couple of todo's
BTW:
Why don't you use #required = true in your forms?
?
Comment #4
aspilicious CreditAttribution: aspilicious commentedComment #5
merlinofchaos CreditAttribution: merlinofchaos commentedBecause I use a lot of 'cancel' and 'back' buttons and until very very late in the CTools form code, you could not skip the #required validation. It is bad UX to require someone to fill in a form field in order to cancel it, so for the most part, I dropped #required from my memory as something that is unusable.
Comment #6
merlinofchaos CreditAttribution: merlinofchaos commentedThe 'exist' function for a page manager page is probably page_manager_page_load()
For the other ones, that might be a little tougher. I don't suppose can can provide arguments to the exists function?
Comment #7
aspilicious CreditAttribution: aspilicious commentedComment #8
merlinofchaos CreditAttribution: merlinofchaos commentedSigh. Of course not. You'd think that with the rise of entity API someone would've thought about that, so that you could more easily use generic loaders. That means that we're going to have to make export-ui implementions have a specific loader function so they can use this functionality, *or* we're going to have to make our own version of this that can use a more generic loader (like ctools_export_crud_load)
Unless you're really interested in the nuts and bolts of export-ui and export.inc that might be beyond what you want to work on. If that's the case, we can remove the bit for the custom content and I'll make a note to work on that.
Comment #9
aspilicious CreditAttribution: aspilicious commentedI only go for novice stuff, never saw ctools code before :).
So that second part is FAR beyond my scope/
I *think* I fixed the page manager...
Comment #10
merlinofchaos CreditAttribution: merlinofchaos commentedThanks for the push, aspilicious!
I got this working generically in export_ui thanks to a last minute patch by sun and eaton that made it possible to use a generic 'exists' function on #machine_name -- looks like this is working just fine on all exportables implemented by CTools and Panels. Yay!
This also revealed a bug in stylizer having to do with $form_state['plugin'] being used for two different purposes.
Actual patch committed attached.