Skip to content

Instantly share code, notes, and snippets.

View arpitr's full-sized avatar

Arpit arpitr

  • Srijan Aravali Technologies
  • Goa
View GitHub Profile
@arpitr
arpitr / gist:2653209
Created May 10, 2012 14:05
db query added to change the username and pass after site creation with default admin/admin
<?php
/**
* Implementation of hook_ca_action().
*/
function webmobilize_ca_action() {
$order_arg = array(
'#entity' => 'uc_order',
'#title' => t('Order'),
);
@arpitr
arpitr / gist:2645688
Created May 9, 2012 15:41
$order, $order_product are passed as arguments and $node->title = $order_id is changed to $node->title = $order->order_id;
<?php
/**
* Implementation of hook_ca_action().
*/
function webmobilize_ca_action() {
$order_arg = array(
'#entity' => 'uc_order',
'#title' => t('Order'),
);
@arpitr
arpitr / hook_uc_order()
Created May 9, 2012 15:38
$order, $order_product passed as argument
<?php
/**
* Implementation of hook_ca_action().
*/
function webmobilize_ca_action() {
$order_arg = array(
'#entity' => 'uc_order',
'#title' => t('Order'),
);
@arpitr
arpitr / gist:2644788
Created May 9, 2012 14:17
site automation code put in a separate function and node structure for Mobile Website has been changed
<?php
/**
* Implementation of hook_ca_action().
*/
function webmobilize_ca_action() {
$order_arg = array(
'#entity' => 'uc_order',
'#title' => t('Order'),
);
@arpitr
arpitr / order
Created May 8, 2012 14:30
hook_uc_order()
<?php
/**
* Implementation of hook_ca_action().
*/
function webmobilize_ca_action() {
$order_arg = array(
'#entity' => 'uc_order',
'#title' => t('Order'),
);
@arpitr
arpitr / arpit default vhost file
Created May 4, 2012 21:03
setup multiple site on local
NameVirtualHost 127.0.0.1:80
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
@arpitr
arpitr / multiple website on local
Created May 4, 2012 20:53
vhost for a website webmobilize on local
NameVirtualHost *:80
<VirtualHost 127.0.0.1:80>
DocumentRoot /var/www/newProject/webmobi
ServerName webmobile
</VirtualHost>
@arpitr
arpitr / multiple website on local
Created May 4, 2012 20:52
vhost for a website www.arpit.com on local
<VirtualHost 127.0.0.1:80>
DocumentRoot /var/www/newProject/drupal_multisite
ServerName www.arpit.com
ServerAlias wqizl.webmobilize.mobi
</VirtualHost>
<?php
/*
* Doubts
* 1.there is no more need of lookupListing as we are having standardizeListingFormat()
* 2.Will the implementation of applyListingDataToLocalRecord() will go like this..
* 3.staticfunction of a class can access non static class variables?....
* 4.Need documentation for getListingData()
*/
<?php
/*
* Doubts
* 1.there is no more need of lookupListing as we are having standardizeListingFormat()
* 2.Will the implementation of applyListingDataToLocalRecord() will go like this..
* 3.staticfunction of a class can access non static class variables?....
* 4.Need documentation for getListingData()
*/