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.
Right now I have no idea of knowing if the verticle_tabs #default_tab actually works as describe.
Sadly there doesn't seem to be a test for testing this functionality. I have a feeling I'm doing something wrong which is why I can't for the life of me get the default_tab working but it might end up that this is just a bug.
Summary: Work has been done during sprint day on DrupalCon Amsterdam, adjusting paths since the structure of Drupal has changed the past 2 years.
Remaining tasks
- Remove whitespace from patch.
- Reroll patch.
Comment | File | Size | Author |
---|---|---|---|
#12 | 1434670-12.patch | 2.64 KB | AlPotapov |
#8 | 1434670-8.patch | 2.66 KB | AlPotapov |
#7 | 1434670-7.patch | 2.59 KB | AlPotapov |
#2 | 1434670.patch | 2.28 KB | bleen |
Comments
Comment #1
ericduran CreditAttribution: ericduran commentedOk, I figured it out. The #default_tab needs to take in a id so in my case it was #default_tab = 'edit-mytabkey';
I still think this needs actual testing, at least to make sure the hidden value is on the page.
Comment #2
bleen CreditAttribution: bleen commentedweird .. the docs are definitely wrong here: http://api.drupal.org/api/drupal/developer!topics!forms_api_reference.ht...
anyway, patch
Comment #3
bleen CreditAttribution: bleen commentedadded new issue: #1534778: FAPI documentation is incorrect for #default_tab
Comment #6
alansaviolobo CreditAttribution: alansaviolobo commentedComment #7
AlPotapov CreditAttribution: AlPotapov commentedRerolled the patch, but there is another test in the same category (FORM\ELEMENTSVERTICALTABSTEST) "Vertical tab wrappers are not displayed to unprivileged users." that is failing. I don't think this is related, but I'm going to take a look at it.
Comment #8
AlPotapov CreditAttribution: AlPotapov commentedAdded missing "#access" element to form array, which caused one test to fail.
Now everything seems to be working fine.
Comment #9
bleen CreditAttribution: bleen commentedYou have some white space issues ...
Thanks for taking the time to reroll this!! As you start to contribute more you should consider using Dreditor. Its a chrome/firefox plugin that helps with tons of things, but one usefull feature is that it highlights whitespace issues on uploaded patches
Comment #10
AdamEvertsson CreditAttribution: AdamEvertsson commentedComment #11
AlPotapov CreditAttribution: AlPotapov commentedbleen18, thank you for your comment! I have deleted the whitespaces, hope it works this time
Comment #12
AlPotapov CreditAttribution: AlPotapov commentedNope.
One more try.
Comment #15
bleen CreditAttribution: bleen commentedI think #12 looks great. Thanks AlPotapov ...
Lets let someone else mark this as RTBC since I helped with the original patch. That said, RTBC from me...
Comment #16
AdamEvertsson CreditAttribution: AdamEvertsson commentedRan the test via Simplytest.me and it came back good, with the exception of error messages saying "Verbose message", but those have been there the whole time if I remember correctly. Apart from that, the rest of the test was good. I'll let you re-open the issue if the "Verbose message" is in the way of RTBC this issue.
Comment #18
alexpottCommitted 6fa0c88 and pushed to 8.0.x. Thanks!