Last active
December 9, 2015 19:37
-
-
Save drewbolles/2294f3ff4a670818034b to your computer and use it in GitHub Desktop.
Custom Field theme function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Implements hook_theme(). | |
*/ | |
function custom_field_theme() { | |
return array( | |
'custom_field' => array( | |
'template' => 'templates/custom-field', | |
'variables' => array( | |
'name' => NULL, | |
'content' => NULL, | |
'title' => NULL, | |
'title_wrapper' => 'h4', | |
'title_classes' => array('field-label'), | |
'title_hidden' => FALSE, | |
'container' => FALSE, | |
), | |
), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment