Taxonomy Tools

A package of taxonomy management tools.
Includes:

  • Taxonomy Publisher
  • Taxonomy Publisher Filter
  • Taxonomy Role Access
  • Taxonomy Redirect
  • Taxonomy Copier

Icons taken from "Crystal" and "Oxygen".

Taxonomy Tools controls global access to taxonomy terms depending on the settings provided by the enabled taxonomy management tools. Also implements node access system to control access for nodes that are associated with taxonomy terms.
Taxonomy tools provides an overview page which provides a summary for vocabularies that use any of the tools included in this module.

Taxonomy Publisher

Adds status "Published" to taxonomy terms and also provides scheduled (un)publishing of taxonomy terms.
The scheduler part is based on code from Scheduler module.
For date mainpulations used datejs library.

Taxonomy Publisher Filter

This module allows you to limit the taxonomy terms listed in a term reference form element or in a views exposed filter.
The current version supports select, checkbox/radio and autocomplete widgets for term reference fields.

Drupal core initiatives and topics

How do I start helping?

The Drupal 8.0.0 Get Involved page has more information about helping get a release out.

Drop by #drupal-contribute in IRC and someone would be happy to help you!

There are also core mentoring hours twice a week for real-time guidance on not only on how to get started but what to work on! (See link for times.) For coders and non-coders alike.

Status functions

The Subs Status API includes the following functions to easily check or change a subscription's status:


subs_in_force

<?php
/**
 * Returns whether a subscription is in force (valid).
 * Active and grace period subscriptions are considered to be in force.
 *
 * @param $subscription
 *   The subscription object we want to check whether is still in force.
 * @return boolean
 *   Returns a boolean indicating whether the subscription is active.
 */
function subs_in_force(Subs $subscription) {
  return
$subscription->status == SUBS_ACTIVE || $subscription->status == SUBS_GRACE;
}
?>

Back to top


subs_set_pending

<?php
/**
* Changes a subscription to pending status.
*
* @param Subs
* The $subscription object we want to make pending.
* @return boolean

Bulk Enable Revisions for all Node Types

This is a utility function which cleans up the variable table, removing entries for node types which no longer exist, and then goes on to set all node types to have revisioning enabled. This code also has a line which disables the default of new nodes to be not Promoted to Front Page , although it is currently commented out. It displays information about what it has done. The first line, a comment, can be used in phpMyAdmin to show what the current settings are for each content type. It is my hope that someday this code might be used as a start for building a full blown module that shows and allows easy editing, and bulk modifications of all settings for all CCK/node types on a site.


function bulk_enable_cck_revisions() {

// select * from variable WHERE name LIKE 'node_options%' # sql to show status of all cck types, use this in phpMyAdmin or similar tool

// first, clean up any old data in the variable table that's not needed any longer.
$result = db_query("select name from variable WHERE name LIKE 'node_options%'"); # quick sql to show status of all cck types
while($name = db_result($result)){
$type = substr($name,13);
$count = db_result(db_query("SELECT COUNT(*) FROM node_type WHERE type = '%s'", $type));
if($count == 0){
drupal_set_message("$type no longer exists. Deleting node_option_$type from variable table");

Subscribe with RSS Subscribe to RSS - status