Made to Order Software Corporation Logo

MO Auto Add Terms: mo_autoaddterms.install File Reference

Install the mo_autoaddterms module. More...

Functions

 mo_autoaddterms_schema ()
 Defines the autoaddterms tables.
 mo_autoaddterms_install ()
 Installation hook.
 mo_autoaddterms_uninstall ()
 Uninstallation hook.
 mo_autoaddterms_requirements ($phase)
 Compute some statistics.
 mo_autoaddterms_update_6000 ()
 Implementation of hook_update_6xxx().

Detailed Description

Implementation of the Drupal auto-add-terms module.

Copyright (c) 2008-2011 Made to Order Software Corp.

http://www.m2osw.com/mo_glossary contact@m2osw.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


Function Documentation

mo_autoaddterms_install (  ) 

Implementation of hook_install().

This function installs the auto-add-terms module. This means creating the database used to cache the list of nodes that have been worked on.

mo_autoaddterms_requirements ( phase  ) 

This function computers statistics about the MO Auto add terms module and show them in the Report status window.

Parameters:
[in] $phase The phase being checked.
Returns:
An array with the requirements.
mo_autoaddterms_schema (  ) 

Implementation of hook_schema().

This function declares:

  • A table to cache nodes that were worked on
Returns:
An array of database table schemas.

Referenced by mo_autoaddterms_update_6000().

mo_autoaddterms_uninstall (  ) 

Implementation of hook_uninstall(). Remove any tables or variables that the module sets.

mo_autoaddterms_update_6000 (  ) 

This function creates the mo_autoaddterms_terms table to register the user selections on a term by term basis.

Returns:
An array with errors if any occur

References mo_autoaddterms_schema().

Documentation generated by Doxygen on Sat Mar 12 16:05:17 2011