Posted By

jonathanpglick on 07/27/09


Tagged

drupal views


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

umang_nine


Views default function


 / Published in: PHP
 

This function goes in the {module_name}.views_default.inc file

  1. function {module_name}_views_default_views() {
  2.  
  3. {...view code...}
  4.  
  5. $views[$view->name] = $view; // include this line after each view's code
  6.  
  7. return $views;
  8. }

Report this snippet  

You need to login to post a comment.