home | career | drupal | java | mac | mysql | perl | php | scala | uml | unix

Drupal example source code file (uc_catalog.inc)

This example Drupal source code file (uc_catalog.inc) is included in the DevDaily.com "Drupal Source Code Warehouse" project. The intent of this project is to help you "Learn Drupal by Example".

PHP - Drupal tags/keywords

arg, args, array, function, if, is_numeric, isset, php, return, uc_catalog_nodewords_type_id, variable

The uc_catalog.inc Drupal example source code

<?php
// $Id: uc_catalog.inc,v 1.1.2.3 2009/12/29 08:35:13 kiam Exp $

/**
 * @file
 * Integration file for uc_catalog.module.
 */

/**
 * @addtogroup nodewords
 * @{
 */

/**
 * Implements hook_nodewords_type_id().
 */
function uc_catalog_nodewords_type_id($arg) {
  if ($arg[0] == 'catalog') {
    if (isset($arg[1]) && is_numeric($arg[1])) {
      return array(NODEWORDS_TYPE_TERM, array($arg[1]));
    }
  }
}

/**
 * @} End of "addtogroup nodewords".
 */

Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal uc_catalog.inc source code file:

new blog posts

"Drupal" is a registered trademark of Dries Buytaert.

my drupal tutorials and examples  

Copyright 1998-2016 Alvin Alexander, alvinalexander.com
All Rights Reserved.

Beginning in 2016, a portion of the proceeds from pages under the '/drupal-code-examples/' URI will be donated to charity.