Project:Node and Comments Form Settings
Version:6.x-2.0
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

I try to extend this module with settings for the nodewords module. I create the nessesary entries and file in the includes folder. My attempt to hide the nodewords module fails, because the nodewords entry is only visible in the after build. Is there a way to extend this really usefull module with ability to hide the nodewords in the after build process?

Comments

#1

Status:active» needs review

Update: I changend the weight of the module to 20 and it works perfect now.
I am not familar with patches so I share the code here. Maybe someone else nows to how to patch. I try to understand the patching workflow but ??? sorry so I try it this way

Set the module weight to 20

nodeformsettings.module
add in the function nodeformsettings_elements_default()

'nfs_nodewords' => 0,

includes/settings_node.inc
function _nodeformsettings_settings_form() add

// Hide the Nodewords Fieldset
$form['nodeformsettings']['nfs_nodewords'] = array(
'#title' => t("Nodewords fieldset"),
'#type' => 'radios',
'#options' => $options,
'#default_value' => isset($settings['nfs_nodewords']) ? $settings['nfs_nodewords'] : $defaults['nfs_nodewords'],
);

and last upload the attached file to the includes folder.

AttachmentSize
option_nfs_nodewords.inc_.tar_.gz 309 bytes