Views default function


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

This function goes in the {module\_name}.views\_default.inc file


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.