Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function mytheme_preprocess_node(&$vars)
- function mytheme_views_pre_render(&$view)
- Example:
- function mytheme_preprocess_node(&$vars) {
- if some field has option 1 selected
- }
- AND
- function mytheme_views_pre_render(&$view) {
- if a view is empty { attach alternative view}
- }
Add Comment
Please, Sign In to add comment