Return to Snippet

Revision: 16135
at July 27, 2009 14:30 by jonathanpglick


Initial Code
function {module_name}_views_default_views() {
    
    {...view code...}

    $views[$view->name] = $view; // include this line after each view's code
	
    return $views;
}

Initial URL

                                

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

Initial Title
Views default function

Initial Tags
drupal

Initial Language
PHP