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

quicksketch’s picture

Status: Active » Needs work

It'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.

EvanDonovan’s picture

Sounds good. I'll write a patch for it sometime later this week, I hope.

EvanDonovan’s picture

Sorry 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...

dave reid’s picture

Status: Needs work » Closed (won't fix)

Actually 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.