Extend the structure of the site by way of content models, data storage, field types, and navigation, so it is more understandable to users.

Webform UK Counties

This module provides a list of UK counties as a select option under "Load a pre-built option list" section of the webform module.

Polygon draw

This is a sandbox for Polygon draw module which allow user to implement facet search on maps using Openlayers module in drupal 7.

Geofield GEOS

Decided to drop this module because my client didn't need something this nuanced, so I stuck to building something custom. Sorry!

MaPS Flipbook

This module provide a new field type that displays a MaPS Flipbook.

Currency Conversion

Currency change without using any Drupal commerce module

<?php
error_reporting(E_ALL ^ E_NOTICE);
/**
** Implementation of hook_permission().
**/
function currencycode_permission() {
// Restrict access to either of your new URLs.
return array(
'access currencycode' => array(
'title' => t('access currencycode'),
'description' => t('Allow users to access currencycode'),
),
);
}

/****
** hook_block_info()
****/
function currencycode_block_info() {
$blocks['executive_sidebar'] = array(
'info' => t('curr del'),
);

return $blocks;
}

/****
** hook_block_view()
****/
function currencycode_block_view($delta) {
$blocks = array();
//delta is your block name. then just set it equal to your return functions.
switch ($delta) {
case 'executive_sidebar':
$blocks['subject'] = '';
$blocks['content'] = drupal_get_form('currency_form');
break;
}
return $blocks;
}

function currency($from_Currency,$to_Currency,$amount) {
$amount = urlencode($amount);
$from_Currency = urlencode($from_Currency);
$to_Currency = urlencode($to_Currency);
$url = "http://www.google.com/ig/calculator?hl=en&q=$amount$from_Currency=?$to_Currency";
$ch = curl_init();
$timeout = 0;

Pages

Subscribe with RSS Subscribe to RSS - Site structure