drupal 6 views preprocess


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function mytheme_preprocess_views_view__events(&$vars) {
  2. if($vars['display_id'] == 'block_1') {
  3. $vars['more'] = l(t('Search All Events'), 'search/apachesolr_search', array('query' => 'filters=type:event'));
  4. }
  5. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.