Maintainers strive to actively monitor issues and respond in a timely manner.

project 1

kuala

project 1 is sample project. just trying to learn how to use drupal. :)

admin_messaging

This Drupal module allows admins to send messages to user using the messaging framework.

Cache Purger

Cache Purger

Purges blocks/views caches when entities get updated
Allow site admins to purge cache for a specific block by clicking on the purge icon.
Automatically purge selected entities when they are saved or updated.

Compatible with:

  • Node
  • Views
  • Blocks
  • Memcache
  • Nodequeue

At the moment there is no intention to have the functionality to purge page cache, which means, for anonymous users to see the updates you still need to clear the page cache. Page cache flush can possibly be added in the future if users find it necessary, please comment.

Installation

Put the modules into your sites/module folder
Enable the module and set user permissions
Visit Configuration > Development > Cache Purger

Configuration

Visit /admin/config/development/performance
or via menus: Configuration > Development > Performance

If you tick 'Purge blocks cache automaticaly when an update happens' Cache Purger will
flush blocks cache when changes are made on entities and nodequeues, etc

Visit the permissions page and set them accordingly /admin/people/permissions#module-cache_purger

Flushing blocks

Click the flush icon when you see the it

Automatic flushing entity cache

On the configuration page, tick the entities that should be automatically flushed

Feeds: Files

This module adds a feeds processor that can directly create files from feeds.

Drupal User Group

Summary

This distribution will be created for Drupal User Groups to help them with and unified platform to manage their events and the community.

Features

Coming soon...

Story document is available here in English and Hungarian language.

field2attr

This module let you write less code to access field values.

Basic usage:

Let's say we have a node type called product, and has 3 fields.

field_color // simple textfield
field_image // image
field_type // single select term

In our module file:

// Implements hook_field2attr_node().
function mymodule_field2attr_node() {
    return array(
        'product' => array('color', 'image', 'type'),
    );
}

There are 2 attributes will attach to the node object for each field:

$node->_ATTR;  // The single first field item value.
$node->_ATTR_items; // Same as field_get_items().

Now we can acces this fields like:

$node->_color;  // The text value.
$node->_image; // The image file uri.
$node->_type // The term id.

// With $node->_ATTR_items we got the field items array, same as field_get_items.
// php not allow field_get_items()[0] syntax, but now we can use $node->_ATTR_items[0]['safe_value'].
$node->_color_items; // Same as field_get_items('node', $node, 'field_color');

Custom field item element key:
With $node->_image can get the image file uri, but some how we want just the image file id, change the hook function to:
<?php
// Implements hook_field2attr_node().
function mymodule_field2attr_node() {
return array(
'product' => array('color', 'image'=>'#fid', 'type'),
);
}

Pages

Subscribe with RSS Subscribe to RSS - Actively maintained