summaryrefslogtreecommitdiffstats
path: root/fedora.module
diff options
context:
space:
mode:
authorPaul W. Frields <stickster@gmail.com>2011-01-21 13:15:21 -0500
committerPaul W. Frields <stickster@gmail.com>2011-01-21 13:15:21 -0500
commitf1e1036c16a236e93f1e8dcb45b8d8ff8b79f5e1 (patch)
tree532ba5fa6b9b2d46b4e5b1ffdca4593216b68100 /fedora.module
parent889d9c49d3b1ca00862324ced5d96f96424eeb19 (diff)
downloaddrupal-fedora-hooks-master.tar.gz
drupal-fedora-hooks-master.tar.xz
drupal-fedora-hooks-master.zip
Remove custom hooks for FWN node titlesHEADmaster
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.
Diffstat (limited to 'fedora.module')
-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');
-}