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

Views default argument from Context

This module allows a default value for a view argument to be specified based on a piece of contextual data set through the Context module's context_set function. When configuring the default argument, you specify the context namespace and the attribute name, and the value is pulled automatically. This is particularly useful for getting information to Views blocks. This is far less hackish than specifying path arguments via arg().

Example use case

Let's say we have a Views block. It's supposed to list all of the nodes that are nodereferenced to whatever node is specified in the argument to the view like so:

nid:23
|_____nid:45
|_____nid:29
|_____nid:35
etc.

Because there's no good way to send arguments to blocks, the traditional approach is to set the View's "Default argument" parameter to PHP code containing:


return arg(1);

...or something similar. It is hackish and terrible to rely on the URL for the current nid -- that approach fails to keep the control hierarchy intact (node/xxx invokes a node controller, and if views is invoked somewhere in that stack, it should not be able to jump all the way up to the node controller to retrieve its arguments -- the node or page controller should supply those arguments).

Hover Preview for ImageCache

Hover Preview Example

Hover preview Javascript effect for the ImageCache module. Allows for hover FROM any ImageCache preset TO any other ImageCache preset. Supports views and standard theme-layer output options.

Superfish Dropdown Menu

Adds support for multi-level drop down menus via the Superfish jQuery plugin. Compatible with keyboard navigation, screen readers, small screens and touch devices.

Chargify API

Chargify logo

This module integrates with the API of Chargify's recurring billing system. This module is an API wrapper for this library only, and doesn't actually "do" anything unless you implement the API in your own module. It's built according to the Chargify API version 1.

Installation

  1. Install the module as usual into your Drupal site.
  2. Install the library through Composer. Either install the Composer module or follow the instructions on the Composer homepage.
  3. Enter the Domain and API key for your Chargify account on the configuration page (/admin/config/services/chargify).
  4. Make sure you set the proper permissions ("access chargify").

Usage

The general concept is to first get a controller for the resource (product, customer, etc.) that
you want to interact with and then use the functions available.

For example to get a listing of all products in the system:

$pc = chargify_api_controller('product');
$products = $pc->getAll();

Sending data to Chargify is easy as well.

$data = array(

Views displays

Views displays is part of the Display Suite and is an implementation of its API.

Pages

Subscribe with RSS Subscribe to RSS - Actively maintained