Is it possible to combine two different Template.php functions? How about two different functions like below? Is it possible to combine below two Drupal Template.php functions?

function mytheme_preprocess_node(&amp;$vars)
function mytheme_views_pre_render(&amp;$view)

Example:
function mytheme_preprocess_node(&amp;$vars) {
if some field has option 1 selected
}
AND
function mytheme_views_pre_render(&amp;$view) {
if a view is empty { attach alternative view}
}
You can do all of this inside the views_pre_render

function mytheme_views_pre_render(&amp;$view) {

  if ($view-&gt;name == 'my_view_name' &amp;&amp; $view-&gt;current_display == 'block_1') {
    if ($node = menu_get_object()) { // gets current page node object
      $field_name_val = $node-&gt;field_name[LANGUAGE_NONE][0]['value']; // get field value
      if ($field_name_val == 'option 1') {
        // your empty view code conditional goes here
        // if($view-&gt;result...
      }
    }
  }

}


You can find out the current_display name look here