DrupalBin
Submit Code
About
Recent Posts
TwitterFeed for D4D review
text
rewrite
Module to overrule the save settings of the "new node" form
Code
apidoc
Empty DateTime Object
Fix for listcars_manufacturer.module
listcars_manufacturer.info
listcars_manufacturer.module
more
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Log in using OpenID
Cancel OpenID login
Create new account
Request new password
Tags
CCK
drupal
fapi
jquery
menu
module
php
simpletest
test
theme
user
views
more tags
Home
import
im trying to add this view to views. its provided by cooolzine theme from themeforest. but i cant import. keep getting error.
July 23, 2010 - 7:05pm — Anonymous
$view
=
new
view;
$view
-
>
name
=
'front_tops'
;
$view
-
>
description
=
'Frontpage view'
;
$view
-
>
tag
=
'default'
;
$view
-
>
view_php
=
''
;
$view
-
>
base_table
=
'node'
;
$view
-
>
is_cacheable
=
FALSE
;
$view
cooolzine
import
import error
views
Read more
Quiz Questions Import
April 18, 2009 - 5:47pm — Anonymous
<?php
// $Id$
/**
* @file
* Questions Import
*
* This module allows you to import questions to quiz node in CSV format.
*/
/**
* Implementation of hook_help().
*/
import
quiz
upload
Read more
Fix for Create a Node from a another Mysql DB Data
April 14, 2009 - 8:55am — Anonymous
<?php
//exec("/usr/bin/clear");
include_once
(
'includes/bootstrap.inc'
)
;
drupal_bootstrap
(
DRUPAL_BOOTSTRAP_FULL
)
;
bootstrap_invoke_all
(
'init'
)
;
ini_set
(
'memory_limit'
,
'512M'
)
;
CCK
import
mysql
node_save
Read more
quiz questions import
April 13, 2009 - 11:21am — Anonymous
require
'includes/bootstrap.inc'
;
drupal_bootstrap
(
DRUPAL_BOOTSTRAP_FULL
)
;
global
$user
;
$lines
=
file
(
'quiz_questions.txt'
)
or
die
(
'Unable to read file content'
)
;
$count
=
0
;
import
quiz
Read more
import drupal cvs into git
February 5, 2009 - 5:19am —
David Thomas
#!/bin/bash -x
git-cvsimport -k -d :pserver:anonymous@cvs.drupal.org:/cvs/drupal drupal
git-push --all /git/public/drupal.git
git-push /git/public/drupal.git --tags
cvs
git
import
Count rows in a large file
December 15, 2008 - 12:54pm — Anonymous
/**
* Helper function to get the number of rows in a file. Excludes the first row
* which contains the column names.
*
* @param string $file
count
csv
file
import
rows
Read more
Create a Node from a another Mysql DB Data
November 13, 2008 - 11:19am — Anonymous
<?php
//exec("/usr/bin/clear");
include_once
(
'includes/bootstrap.inc'
)
;
drupal_bootstrap
(
DRUPAL_BOOTSTRAP_FULL
)
;
bootstrap_invoke_all
(
'init'
)
;
ini_set
(
'memory_limit'
,
'512M'
)
;
CCK
import
mysql
node_save
Read more
add 'property' cck node using drupal_execute (d6)
August 9, 2008 - 8:54pm — Anonymous
function
mymodule_import
(
)
{
// get the old data
$old_db
=
mysql_connect
(
"host"
,
"user"
,
"pass"
)
or
die
(
'Could not connect to mysql server.'
)
;
CCK
import
Read more