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

Drupal example source code file (UPGRADE.txt)

This example Drupal source code file (UPGRADE.txt) 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

and, array, be, change, content_id, content_type, data, for, has, of, sure, the, to, votingapi

The UPGRADE.txt Drupal example source code

$Id: UPGRADE.txt,v 1.1.2.1 2010/01/27 01:38:45 eaton Exp $

This document is intended to be a guide for developers upgrading a VotingAPI-based module from one major version of VotingAPI or Drupal to the next.

VotingAPI 6.x-2.x to 7.x-2.x
----------------------------
The Drupal 7 upgrade for VotingAPI makes one important change: the "content_type" and "content_id" terminology that's been present for several years has been changed to avoid confusion with other parts of core.

VotingAPI has never stored individual *node* types, like 'story' or 'page', and new developers often mistake the 'content_type' indicator in VotingAPI for a node-type field. As such, VotingAPI now uses the names 'entity_type' and 'entity_id'.

When data is being passed into VotingAPI, be sure that you use the new 'entity' terminology in your array keys, etc. In addition, if you're doing raw SQL queries against the VotingAPI data in your database, be sure to change the column names. A full search and replace for content_type and content_id, replacing them with entity_type and entity_id, should do the trick.

Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal UPGRADE.txt 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.