28 Modules match your search

Extend and customize Drupal functionality with contributed modules. If a module doesn't quite do what you want it to do, if you find a bug or have a suggestion, then join forces and help the module maintainer. Or, share your own by starting a new module.

featured news feature

Sample with created news

Here is an example of how to build a list of featured elements on top of a paged listing.

Featured elements are not displayed on the paged listing.

Downloads

Model Entities

model-entity1.jpg

The objective of this module is to provide a model entity and entity administration interface to kick-start your entity development.

While entities in Drupal 7 are a very useful abstraction and can be great tool for suitable projects there are some challenges facing developers wanting to use them:

a. Identifying what is a suitable project for entities.
b. Figuring out what is “best practice” when it comes to entity development and quickly getting up to speed with working code.
c. Effectively integrating entities with Drupal core and modules that are entity-aware and can give you extra functionality for free.

These challenges are partially being met by:

a. The Entity API module covering a lot of the ground that the Core Entity API does not (and then some) and doing a lot of the heavy lifting when it comes to integrating with the rest of Drupal core and modules.
b. Real-life examples (Profile2, Drupal Commerce, Message) which illustrate just how entities can be used in real scenarios.

Nevertheless, putting it all together for your own specific needs is still not simple and identifying “best practice” way of doing that is not clear.

Downloads

Views Examples

Views Examples Settings Page

A collection of views examples that can be turned on and used directly within views. You can use the views examples as-is on your site, or you can clone them and use them as a starting point for further customized views.

Although this module works, it will likely be rewritten as a features package in the future.

How to Use

  1. Enable views and views_examples modules.
  2. Go to views_examples settings page: /admin/settings/views_examples
  3. Turn on the examples you would like to try out. Some examples require additional modules which are noted. You won't be able to enable those examples until the required modules are enabled.
  4. Go to views build page: /admin/build/views. The enabled examples will be shown.
  5. Click "clone" for any example you want to edit. This is not strictly necessary (you can simply edit the example view itself) but, if you clone it instead, you will be left with the original example view for reference.
  6. Edit your cloned version and play around. Preview results of the view at the bottom of the page by choosing the display and then clicking the Preview button.
  7. Have fun!!

Current Views Examples

Most of the examples thus far are fairly simple. One more complicated one is the Similar by Terms example.

    Downloads

    Commerce Examples

    This project aims to provide simple, educational examples of the programming APIs used in Drupal Commerce.

    Right now there are examples of:

    • Adding additional checkout panes
    • Adding additional checkout pages
    • Adding a custom line item
    • Adding order states and statuses
    • Programmatically inserting products
    • Programmatically adding to the cart
    • Creating orders

    On the agenda:

    Downloads

    Dummy Content

    Dummy Content (DC) provides an API (hooks) for other modules to generate (& manage) dummy nodes.

    DC allow your custom module to provide demo nodes as soon as the module is installed - this helps with populating blocks, views, and generally showcasing your module's functionality. This is very useful when showcasing a module's functionality to a client. For example, rather than installing the Forum module and having to manually create forum nodes, the DC API can be used to pre-populate the site with forum-type nodes as soon as the Forum module is enabled. Additionally, rather than having purely Lorem Ipsum-type content, you can define relevant pieces of text and images, giving the content a more complete & realistic look & feel.

    DC will also clean up after itself, removing any dummy nodes when child-modules are disabled.

    Requirements

    As of 7.x-1.2, DC requires the Tableform module.

    API

    The included dc_example.module provides an example implementation of the available hooks:

    hook_dummy_content_data():
    - allows you to define 'subjects' of text and image data

    hook_dummy_content():

    Downloads

    Rules examples

    This project contains example code for Rules 2 plugins:

    * Rules actions (including minimal example, an example with a required parameter, and an action that also provides a parameter)
    * Rules conditions, including using parameters
    * Declaring and invoking Rules events

    The example code does not contain any Rules data types, nor any simple tests. Sorry about that.

    There is a screencast series available presenting all of the included code and the concepts behind it – see http://dev.nodeone.se/node/895

    Downloads

    Example Web Scraper

    Web Scraper

    This example demonstrates how to build a Drupal-native web scraper. It imports events from a single month of Stanford University's calendar by navigating to the page for each day and creating a node for each event on the day's list. Each event is then queued for scraping its details.

    All functionality is provided by Feeds, Feeds XPath HTML Parser, Feeds Crawler, Feeds SelfNode Processor, and Feeds Tamper. This module only includes an example configuration packaged using Features. Developers and site-builders who are interested in web scraping may find it a helpful starting point.

    Downloads

    Design

    The Design project provides a home for designers and themers working with Drupal.

    Goals

    • Provide actual tools to aid in Drupal theming (but without duplicating other projects).
    • Discuss ideas and agree on best practices on design/theming (with lots of bikeshed and bullshit), possibly turning into guidelines over time.
    • Raise concrete design and theming problems (bugs) in Drupal, and how to solve them.
    • Form a concensus to standardize on certain theme engines, base themes, etc.
    • Compare and conclude on theming approaches, (third-party) software tools, such as image compression, collaboration, etc.
    • Prepare for modern or upcoming design, theming, and usability problem spaces, such as HTML5, and figure out how to handle them in Drupal.

    Overall, a place to share your findings with others. Instead of scratching your own itch, contribute to solve problem spaces that are common for all designers and themers, so everyone can design and deliver better Drupal sites.

    Downloads

    Form API Multiselect element

    Multiselect widget

    Provide **Multiselect widget** (form element) for developer:

    Downloads

    Plugin tools

    Overview page for Plugins

    Plugin tools is a small developer/administrator utility which allows you to browse the various plugins provided by different modules. This information is normally hidden in the code layer. The aim is to provide some useful, extra tools to developers and interested maintainers.

    This may be desirable for several reasons:

    • To see which modules are providing plugins
    • To check and debug plugins during development

    The Drupal 7 version of this module works with Chaos Tools plugins. A possible future Drupal 8 version will utilise core plugins.

    Writing compatible plugins

    The aim of Plugin tools is to merely wrap existing plugin paradigms without requiring additions to each plugin, however Plugin tools does expect plugin settings arrays to provide some common keys...

    name
    The machine name of the plugin. Used when another title cant be found
    title
    Used in the Plugin tools UI as the Plugin's title. If not found, 'label', will also be tried, before falling back on the machine name.
    description
    If provided, will be used as the description in the Plugin tools UI

    Using the API

    A module can add a small plugin dictionary to its own configuration screens by using the following:

    <?php
    if (module_exists('plugin_tools')) {

    Downloads

    Contact Webform

    This module is to demonstrate how Ajax enabled forms can be created in Drupal using Ajax and webform module. This is only for experimental purpose, use at your own risk.

    Downloads

    AFW - Available for work

    Screenshot of the output, which reads "Available for Work?" And the response: "Not right now"

    This module provides a basic block that will let you tell others if you are available for work. You can change the block title and the phrasing that appears from the block configuration page. The default value is set to say that you are accepting more work. I'm not sure if that's optimistic or
    pessimistic, but you can change it whenever you'd like.

    If you run your own freelancing practice, it's generally a good idea to let people know on your site whether you're accepting new work; it's pretty much one of the few things people will actually use your site for.

    Downloads

    Beer O'Clock

    Description

    Provides an easy way to produce a page that will simply tell you whether it is beer o'clock yet or not. Beer o'clock can be configured in the administration settings for the site to suit your particular company/workplace.

    This module was collaboratively written by high school students during the Catalyst Academy as a part of the Drupal mentorship. For more details see http://catalyst.net.nz/academy

    Downloads

    Skill Compass

    A tree with topics and sub topics.

    Skill Compass is a tool for building sites that help people learn a subject. It allows collaborative work in breaking down the subject into topics and sub topics, building advancement trees of topics, and adding learning resources of different types. The topics and resources are presented in a way that helps learners discover what they can and/or should learn, by themselves.

    An example of the Skill Compass modules can be found at http://skillcompass.org/. There are also some demonstration videos available introducing Skill Compass.

    A description in images

    Image 1: Topics are presented in a graphical tree showing main 'branches' of the subject, and their sub topics, and even more sub topics.

    Image 2: There's an alternative tree for showing "advancement" – once you've mastered a specific topic, these other topics will be in your reach.

    Image 3: -->
    Topics are presented with a description, and a list of resources for learning that topic. (On the skillcompass.org example site, suggestions are also brought in from Google.)

    Topics can me marked as mastered, which will start populating a personal list of topics in your learning vicinity.
    .

    Image 4: -->

    Downloads

    Typical Entity Example

    Typical Entity Example module is an educational module which shows how to create
    entities for Drupal in your modules.
    This module contains some sub-modules, and each of these sub-modules implements
    an educational Drupal entity.

    • Typical Entity Example: Typical Entity Example module is a parent module for all its sub-modules and implements the Drupal permissions, used by these sub-modules.
    • Typical Entity Example 1: Typical Entity Example 1 sub-module creates the smallest possible entity with machine name "typical_entity_1". This entity exists in Drupal, but you cannot even create the instances of it.
    • Typical Entity Example 2: Typical Entity Example 2 sub-module creates a minimalistic entity, the instances of which can be created, edited or deleted with Entity Metadata Wrappers.
    • Typical Entity Example 3: Typical Entity Example 3 sub-module creates a small entity, which has some predefined bundles and attached fields.
    • Typical Entity Example 4: Typical Entity Example 4 sub-module creates the entity, the instances of which can be created and edited with a simple user interface.

    Downloads

    OpenFed views multi-column display

    Allows the user to define the number of columns used to display the content of a view without having an access to the views interface.

    Limitations

    Only tested in the "OpenFed / Fast2web D7" distribution. But should work as a standalone.

    Credits

    Developed by Blue4You sponsored by Fedict.

    Downloads

    Field Resource

    Summary

    Use this module if you need to cherrypick on an entity type or individual entity level what fields should be output in what order in a Drupal service call. The Field Resource module uses tokens and the content edit interface so you don't need to be a developer to fine tune the content returned in a service call.

    Description

    The Field Resource Module is a plugin for the Services module. The module provides a new field type that you can add to any entities whose content you want to use as a resource in a Drupal service. In the field you can use a combination of text and tokens to finetune the output you will get for a service call for that entity.

    The field widget has two parts:

    • Text area where you define the service output:
      On an entity type level you can define a default for the service output for all the entities of a given type. You could for example concatenate the output for all the fields in reverse order e.g.
      "[field_C]; [field_B]; [field_A]"
      On individual entity pages you can change the content of the field to overwrite these default settings.
    • a machine name form element for the unique resource id:
      By default this field will be derived from the title of the node, but it is again possible to overwrite this default setting. This unique id is needed for the service call.

    Downloads

    Development Meta module

    This is a simple meta module. It installs the key tools for building Drupal
    sites. When you disable or uninstall the module it removes the dependencies
    for you too.

    To start using meta_dev you can use one of the following methods:

    Drush Make

    Include the following entry in your drush make file

    ; Include dev tools
    projects[meta_dev][subdir] = "dev"

    Download and Enable with Drush

    Run the following command to download and enable meta_dev and all the
    dependencies:

    Downloads

    Chaos Tools Export UI Template

    ctex is a template for making a configuration-based module which uses ctools to
    handle import/export as well as the CRUD UI. It is designed to jump-start the
    process of creating these types of modules.

    You should not install ctex, but overwrite it to make your own module.

    Note on the 7.x release
    I have not properly tested the 7.x release, save common updates from 6.x Patches welcome.

    INSTRUCTIONS:

    1. Choose a unique name for your module.
      For our example, we'll be working with presets for reporting settings, so the
      module will be called "reports".
    2. Using your favourite IDE or text editor, do a global replace on:
      "ctex" => "reports"
      "Ctex" => "Reports"
    3. Rename the four files which contain ctex in the title.
    4. ctex uses the default exportable name of "preset". If you would prefer
      something else, globally replace "preset" with your desired exportable name.
    5. In the .info file, review and change the Name and Description.
    6. In the export_ui plugin, update the plugin settings to match desired menu and
      singular/plural names.
    7. In the .install file, update the schema to match your configuration. A couple
      of fields have been added to get your started. Be aware that ctools will inject

    Downloads

    Community Media Examples

    This module includes Feature exports of the fields stations have added to the Project, Show, Airing, and Reservations.

    Downloads

    FAIL.

    This project, dreamed up during a late night case of the sillies in #drupal-contribute, attempts to be a complication of worst Drupal practices in one place, so people can figure out what NOT to do when developing modules.

    If you are instead interested in learning about the best Drupal development practices, please see the Examples for Developers project.

    Downloads

    Stepwise

    What is Stepwise?

    Most modules require a site builder to change settings on several pages. Stepwise strings all those forms together into a single multistep form. If you have a module with a setup that requires users to make changes on more than 2 forms, consider including a stepwise workflow into your module folder on Drupal.org.

    With this module you can

    • Decrease the time sitebuilders spend to configure your module
    • Increase your life quality by reducing the times you need to say RTFM
    • Create Stepwise workflows for different common use cases of your module
    • Use Stepwise for engineering checklists for your company’s configuration best practices
    • Help people to learn and understand Drupal faster.

    Stepwise vs features

    Features are a great way to export settings if you want to replicate exactly the same settings in a new installation. Stepwise on the other hand walks you through the configuration screens. You can include default settings for the forms but users can still overwrite them during the installation process.

    How it works

    Stepwise is both:

    • a UI for managing and creating workflows
    • an API for running and managing Stepwise workflows

    Downloads

    Movico

    Movico is a framework for helping web developers create well organized Drupal modules and web applications using OOP techniques and the MVC design pattern. Developers can use powerful objected oriented PHP features. Movico allows developers to take more advantage of popular IDE tools for creating better software.

    Downloads

    Qscience D2D Search

    This is an extension of the D2D Search module for the QScience distribution.

    Creates a form to look for content type "paper" in the network of friends instances.

    Downloads

    Bootstrap Slider

    Bootstrap Slider module for Drupal by More than (just) Themes.

    Downloads

    Pages