Doctor

Component type

module

Categories

Maintenance status

Development status

Downloads

2457

Component created

Component changed

What is it?
The module "Doctor" is "listening" to a doctor listen item that create during your module actions.

How does it work?
The doctor create an entity called doctor. When running the drush command drush doctor-listen(AKA dols), the module will wait for a doctor entity entry to create and will present the data on the CLI. If there any items that created when the doctor did not listen, the next time the you initialized the command, they will be displayed for in the CLI.

Rules Condition: Node unpublished

Component type

module

Maintenance status

Development status

Downloads

665

Component created

Component changed

Custom condition for Rules Module: detect, if is node unpublished.

Or you can import this code as Component in your Rules under /admin/config/workflow/rules/components/import :

{ "rules_node_is_unpublished" : {
    "LABEL" : "Node is unpublished",
    "PLUGIN" : "and",
    "REQUIRES" : [ "rules" ],
    "USES VARIABLES" : { "node" : { "label" : "Node", "type" : "node" } },
    "AND" : [ { "NOT node_is_published" : { "node" : [ "node" ] } } ]
  }
}

Views duplicates

Component type

module

Categories

Maintenance status

Development status

Component created

Component changed

Ever had more than one view on a page and wanted to get rid of duplicates?

While I couldn't find answer for that question I just wrote this module to help me out. And it does job pretty well.

I have a news site that has different blocks of views showing the same content type, some of them show promoted articles, while others show some other different variations. But sometimes it happens that few views show the same node in them as it matches those criteria. So to get rid of that problem I wrote this simple module.

bot_post

Component type

module

Maintenance status

Development status

Component created

Component changed

Allows users to post quick comments on a Drupal website using IRC. Useful for creating an equivalent of a "tweet" on a Drupal site, using IRC. Also supports URL parsing with the 'bot_url' module, so that if you post an URL only, it will fetch the URL title and use it as the title of the node.

Quiz Skip Correct

Component type

module

Maintenance status

Development status

Component created

Component changed

This module skips correct questions on a user's subsequent attempts at a quiz.

It was written for multiple choice question quizzes, but could probably be modified for to work with all question types.

Acknowledgments

Initial development sponsored by Cloud Nyne Design and Promet Source.

Theme Reference

Component type

module

Maintenance status

Development status

Downloads

1722

Component created

Component changed

Provides a theme reference field.

How can I change the current theme based on the theme selected for a node?

/**
 * Implements hook_custom_theme().
 */
function MODULE_custom_theme() {
  // set the theme based on field_article_theme
  $node = menu_get_object();
  if (isset($node->field_article_theme[LANGUAGE_NONE][0]['name'])) {
    $theme = $node->field_article_theme[LANGUAGE_NONE][0]['name'];
    return $theme;
  }
}

Alien Exporter

Component type

module

Maintenance status

Development status

Component created

Component changed

This project is a simple integration of the Reddit php API to provide export functionality for your Reddit saved links. The module provides result generation as a csv file or as a displayed html table. Reddit login information is not stored on the server side.