From f1e1036c16a236e93f1e8dcb45b8d8ff8b79f5e1 Mon Sep 17 00:00:00 2001 From: "Paul W. Frields" Date: Fri, 21 Jan 2011 13:15:21 -0500 Subject: Remove custom hooks for FWN node titles This will be handled by the auto_nodetitle module in the future, and there is no need for us to maintain this custom code now. --- fedora.module | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/fedora.module b/fedora.module index 9c8373e..cb9dfde 100644 --- a/fedora.module +++ b/fedora.module @@ -7,20 +7,3 @@ * the issue and beat number provided through CCK. */ -function fedora_fwnbeat_node_form_validate($form, &$form_state) { - /** - * This function does not do pure validation, but rather performs - * the specific function of computing the value of a new node title - * from a given FWN issue and beat. - */ - $newtitle = 'FWN ' . $form_state['values']['field_issue'][0]['value'] . ' - ' . $form_state['values']['field_beat'][0]['value']; - form_set_value($form['title'], $newtitle, $form_state); -} - -function fedora_form_fwnbeat_node_form_alter(&$form, $form_state) { - // In the FWN beat content entry form, remove the title field - $form['title']['#type'] = 'hidden'; - $form['title']['#value'] = NULL; - // array_unshift() puts our custom validation function at the top. - array_unshift($form['#validate'], 'fedora_fwnbeat_node_form_validate'); -} -- cgit