Maintainers monitor issues, but fast responses are not guaranteed.

Fitness Activity

This is a sandbox module for creating Entity in Drupal 7.

What this module is capable of currently:-

Remove Duplicates

Module available in Content Management section

Overview

This module helps the administrator to easily remove duplicate nodes according to one of the node fields.

Features

The duplicate nodes found are permanently removed. It can be very useful with Drupal Feeds module (Feeds).

Requirements

  • Drupal 7

Screenshots

Configuration page

Known problems

- No reports yet.

Documentation

  • Check out README.txt

Tutorials

To use this module :

First step :

  1. Select the node type from which you want to remove duplicates.
  2. Select the field which is going to be used to group nodes (basic or custom field).
  3. Select a layout for found duplicates (list, table, tableselect)
    • list : display found duplicates as a list with duplicates to remove autoselection
    • table : display found duplicates as table with duplicates to remove autoselection
    • tableselect : display found duplicates as tableselect with duplicates to remove manual selection

Javascript Templates

Javascript Templates provides a simple workflow to add HTML templates to 1 Javascript file as output. You can add your own templates with a custom hook or alter currently available templates.

The main goal of the module is to use your templates within Javascript (for example in underscore.js templates). This prevents you to have any line of HTML within your Javascript code.

Mustache.js-like templates do NOT have my preference because they create <script></script> tags that are not elegant within your HTML DOM.

I was inspired by the following article. With this module I aim to provide a solution for a very common template-struggle for many developers. Externalizing Backbone.js templates into separate files

Code examples

Example template.tpl.html file:

<div class="message-wrapper">
    <span><%= message %></span>
</div>

Example implementation in your Drupal module for a custom template.tpl.html file: (you can also use Drupals theme() layer, output should always be rendered HTML)
<?php
/**
* @return array
* @see hook_javascript_templates_add()
*/
function MY_MODULE_javascript_templates_add() {
return array(

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 - Minimally maintained