commit 12702f89c66495402414b714168f890acc5ea215 Author: Scott Reynolds Date: Tue Apr 27 13:14:06 2010 -0700 implement content extra fields for smackdown diff --git smackdown.module smackdown.module index 50699e0..b333e9a 100644 --- smackdown.module +++ smackdown.module @@ -242,6 +242,22 @@ function smackdown_context_conditions() { } /** + * Implementation of hook_content_extra_fields(). + */ +function smackdown_content_extra_fields($type_name) { + $extra = array(); + if (in_array($type_name, variable_get('smackdown_types', array()))) { + $extra['prev_results'] = array( + 'label' => t('Smackdown Previous Results'), + 'description' => t('The Previous Results from other smackdown'), + 'weight' => -1, + ); + } + + return $extra; +} + +/** * Implementation of hook_theme(). */ function smackdown_theme() {