Download & Extend

Setting group selection as 'Required' does not work

Project:OG Audience By Type
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active

Issue Summary

the title says pretty much it all, impossible to set group selection as required, nothing happens.. thanks

Comments

#1

Subscribing

#2

Priority:normal» critical

#3

If you want to make the set group required, you can create a simple module and use hook_form_alter to force any form field to be required.

function mymodulename_form_alter(&$form, &$form_state, $form_id) {
$form['og_nodeapi']['visible']['og_abt'][0]['og_group_type_group_node_']['#required'] = TRUE;
}

nobody click here