Implementing hook_views_default_views cleanly


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

This snippet searches a subfolder at views/default_views for any files with a .inc extension. Place exported views code in a file in views/default_views to have it picked up and included by the function. This eliminates the mess of trying to keep several long exported views in a single file.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.