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?

CommentFileSizeAuthor
#1 option_nfs_nodewords.inc_.tar_.gz309 bytesbroncomania

Comments

broncomania’s picture

Status: Active » Needs review
StatusFileSize
new309 bytes

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.

kssundar’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)

Changing module weight might affect other supportive modules to not to work.