summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fedora.module17
1 files changed, 0 insertions, 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');
-}