Importing a drupal view programmatically
If you need to import a drupal view programmatically, it is fairly simple:
include_once(drupal_get_path('module', 'views') .'/views.module');
include_once(drupal_get_path('module', 'views') .'/includes/view.inc');
include_once(drupal_get_path('module', 'views') .'/includes/cache.inc') ;
include_once(drupal_get_path('module', 'views') .'/includes/convert.inc');
/* ... insert import code here */
views1_import($view);
$view->save();
There is another way to do it, by setting up a custom module. The good thing about going the custom-module route, is you don't need to hit the DB for the view information.
Trackback URL for this post:
Online gamble.
from Gamble online using paypal. on Tue, 03/09/2010 - 18:48Gamble online using paypal. Gamble online. How to gamble online. Where can you gamble online. Online gamble.
Buy prozac phentermine online free shipping cheap.
from Cheap phentermine online 37 5. on Mon, 03/08/2010 - 18:31Buy cheap phentermine. Buy phentermine online buy cheap phentermine index. Cheap phentermine diet pill. Cheap phentermine free shipping.
Xenical hgh phentermine quit smoking detox.
from Phentermine. on Mon, 03/08/2010 - 18:05Order phentermine uk. Buying phentermine. Phentermine. Discount phentermine. Xenical hgh phentermine quit smoking detox. Phentermine pharmacy.
Cheap soma.
from Cheap soma indice. on Mon, 03/08/2010 - 02:24Cheap soma watson. Buy cheap soma. Cheap soma. Watson soma cheap. Cheap soma indice.
Xanax.
from Xanax with klonopin. on Sun, 03/07/2010 - 17:56Order xanax online. Xanax norx needed one day fedex overnight delivery. Xanax. Buying xanax online.
Buy amoxicillin without prescription.
from Buy amoxicillin without prescription. on Sun, 03/07/2010 - 01:11Buy amoxicillin without prescription. Buy amoxicillin with no prescription. Buy amoxicillin.
Xanax.
from How long does xanax stay in your system. on Sat, 03/06/2010 - 16:36Xanax. Buy xanax with no prescription. Xanax dosage.
Cheap phentermine.
from Cheap phentermine. on Sat, 03/06/2010 - 16:05Buy cheap phentermine online lowest prices. Order cheap phentermine. Phentermine cheap. Buy cheap phentermine now save. Extra cheap phentermine. Cheap 37 5 phentermine. Cheap phentermine.
Buy viagra in canada.
from Buy viagra. on Fri, 03/05/2010 - 17:59Buy link phlog net user viagra. Re buy viagra with discount. Buy viagra uk.
Buy cheap phentermine no prescription.
from Phentermine cheap no prescription. on Fri, 03/05/2010 - 03:34Phentermine cheap no prescription. Cheapest phentermine online. Cheapest phentermine pills.
Viagra.
from Viagra. on Thu, 03/04/2010 - 22:25Viagra. Buy viagra online. Viagra online add to cart. Generic viagra. Re viagra cello.
Mini ephedrine.
from Ephedrine. on Wed, 03/03/2010 - 19:18Ephedrine. Someone who used ephedrine. How to make ephedrine. Health risks of ephedrine. Ephedrine side effects. Danger of ephedrine. What contains pseudo ephedrine. Extracting ephedrine.
Order fioricet online.
from Fioricet online at linkolnbudet org. on Tue, 03/02/2010 - 14:03Purchase fioricet online without prescription. Buy fioricet online. Cheap fioricet online. Fioricet online. Buy fioricet online whitepage blog.
Buy valium no prescription.
from Discount valium online. on Tue, 03/02/2010 - 04:21Cheap valium free shipping. Buy valium cheap. Buy valium no prescription. Buy cheap valium. Order valium online.
Ambein dizziness.
from Ambein dizziness. on Mon, 03/01/2010 - 19:25Ambein dizziness. Ambein. Ambein buydrug phenterminecod phentermineonlin.
Ephedrine sold in arkansas.
from Ephedrine effects. on Mon, 03/01/2010 - 06:50Ephedrine. Ephedrine hcl.
Xanax 2mg.
from 2mg xanax order. on Sun, 02/28/2010 - 19:34Buy xanax without prescription in usa. Xanax.
Flight tickets online.
from Flight tickets online. on Sun, 02/28/2010 - 06:29Flight tickets online.
Cheap viagra.
from Cheapest viagra in uk cheap viagra viagra. on Sat, 02/27/2010 - 06:46Cheap viagra.
Tickets online.
from Online traffic schools for speeding tickets. on Fri, 02/26/2010 - 23:21Concert online tickets. Vrs online tickets preise. Buyselltix com chicago blackhawks tickets online. Online tickets. Paying tickets online. Where can i buy cheap nba tickets online. Online california lottery tickets. Online airline tickets.
Phentermine side effects online phentermine info.
from Blue phentermine gt buy phentermine online. on Fri, 02/26/2010 - 06:49Phentermine online pharmacy.
Cheap diet pills with ephedra.
from Cheap ephedra. on Thu, 02/25/2010 - 20:34Cheap ephedra. Cheap metabothin with ephedra. Ephedra cheap.
Buy fioricet online without a prescription.
from Buy fioricet. on Thu, 02/25/2010 - 08:04Buy fioricet.
Cheap viagra.
from Cheap viagra. on Wed, 02/24/2010 - 20:07Cheap viagra. Buy viagra cheap. Viagra cialis levitra buy cheap cialis buy ciali.
Soma side effects.
from Soma. on Tue, 02/23/2010 - 22:13Soma side effects. Crushing muscle relaxer soma. Soma cube puzzle. Soma. Soma and addiction.
Cheap vicodin.
from Buy cheap no prescription vicodin. on Mon, 02/22/2010 - 16:59Cheap vicodin. Buy cheap no prescription vicodin. Cheap vicodin cod.
Phentermine.
from Phentermine. on Mon, 02/22/2010 - 02:53Phentermine 37 5mg. Abuse phentermine. Phentermine hcl.
Cheap valium no prescription.
from Cheap valium. on Sun, 02/21/2010 - 18:02Cheap online valium no-presription. Valium overnight cheap. Cheap valium.
Review phentermine online and diet pill offers.
from Cheapest phentermine online. on Sun, 02/21/2010 - 04:45Order phentermine online. Phentermine online pharmacy. Order phentermine phentermine online.
Post new comment