import

im trying to add this view to views. its provided by cooolzine theme from themeforest. but i cant import. keep getting error.

  1. $view = new view;
  2. $view->name = 'front_tops';
  3. $view->description = 'Frontpage view';
  4. $view->tag = 'default';
  5. $view->view_php = '';
  6. $view->base_table = 'node';
  7. $view->is_cacheable = FALSE;
  8. $view

Quiz Questions Import

  1. <?php
  2. // $Id$
  3.  
  4. /**
  5.  * @file
  6.  * Questions Import
  7.  *
  8.  * This module allows you to import questions to quiz node in CSV format.
  9.  */
  10.  
  11. /**
  12.  * Implementation of hook_help().
  13.  */

Fix for Create a Node from a another Mysql DB Data

  1. <?php
  2. //exec("/usr/bin/clear");
  3. include_once('includes/bootstrap.inc');
  4. drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
  5. bootstrap_invoke_all('init');
  6. ini_set('memory_limit', '512M');

quiz questions import

  1. require 'includes/bootstrap.inc';
  2. drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
  3.  
  4. global $user;
  5.  
  6. $lines = file('quiz_questions.txt') or die('Unable to read file content');
  7.  
  8. $count = 0;

import drupal cvs into git

  1. #!/bin/bash -x
  2. git-cvsimport -k  -d  :pserver:anonymous@cvs.drupal.org:/cvs/drupal drupal
  3. git-push --all /git/public/drupal.git
  4. git-push /git/public/drupal.git --tags

Count rows in a large file

  1. /**
  2.  * Helper function to get the number of rows in a file. Excludes the first row
  3.  * which contains the column names.
  4.  *
  5.  * @param string $file

Create a Node from a another Mysql DB Data

  1. <?php
  2. //exec("/usr/bin/clear");
  3. include_once('includes/bootstrap.inc');
  4. drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
  5. bootstrap_invoke_all('init');
  6. ini_set('memory_limit', '512M');

add 'property' cck node using drupal_execute (d6)

  1. function mymodule_import() {
  2.     // get the old data
  3.     $old_db = mysql_connect("host", "user", "pass") or die('Could not connect to mysql server.' );
Syndicate content