Closed (won't fix)
Project:
Vertical Tabs
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 May 2009 at 20:48 UTC
Updated:
6 Nov 2009 at 20:48 UTC
Here's a brief Javascript snippet for vertical_tabs.node_form.js to make the module compatible with the Modr8 module, which many people use to moderate content (i.e., set & unset the "moderate" field in the {node} table).
This goes in the Drupal.verticalTabs.options callback function.
if ($('#edit-moderate').attr('checked')) {
vals.push(Drupal.t('In moderation'));
}
Comments
Comment #1
quicksketchIt'd be good to check if the "$('#edit-moderate')" element exists before trying to check its attribute, then we could add this to Vertical Tabs without it cause problems for users that don't have Modr8 installed. A patch would be appreciated for this.
Comment #2
EvanDonovan commentedSounds good. I'll write a patch for it sometime later this week, I hope.
Comment #3
EvanDonovan commentedSorry I forgot about this. Now that I know a little more jQuery, I can write the patch - I just have to set aside a few minutes to do that...
Comment #4
dave reidActually I'd much rather prefer the integration to go into the Mod8 module. I'll work on documenting how modules can add their own summaries for node forms in #554172: Please document how to vertical_tabs-ify a module in D6 (and compare to D7 core). This will be the way you have to do it in Drupal 7 with Vertical tabs, so you might as well get started now doing it right.