function og_rules_action_add_group_node_form in Organic groups 6
Same name and namespace in other branches
- 6.2 includes/og.rules.inc \og_rules_action_add_group_node_form()
Action:Add group node settings to content form.
File
- includes/
og.rules.inc, line 167 - Rules integration for the og module.
Code
function og_rules_action_add_group_node_form($settings, &$form) {
$node = !empty($settings['og_fieldset']['og_settings']) ? $settings['og_fieldset']['og_settings'] : array();
$og_form = og_group_form($node, array());
$form['settings']['og_fieldset'] = array(
'#type' => 'fieldset',
'#title' => t('Organic groups form settings'),
);
$form['settings']['og_fieldset']['og_settings'] = $og_form;
}