Made to Order Software Corporation Logo

MO Poll: mo_poll.module File Reference

Module functions of the MO Poll module. More...

Enumerations

enum  MO_POLL_VERSION
 

Define the version of the MO Poll module.

More...

Functions

 mo_poll_help ($path, $arg)
 Return the help info about the mo_poll module.

 mo_poll_block ($op= 'list', $delta=0, $edit=array())
 Implementation of the Poll Block.


Detailed Description

The mo_poll module was created to let user(s) show the most recent poll in different categories as defined by a taxonomy, a node type and other similar things.

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

http://www.m2osw.com/mo_poll 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.


Enumeration Type Documentation

This variable defines the version of the MO Poll module. This will always be the same as the version defined in Drupal (throught the .info file.)


Function Documentation

mo_poll_block ( op = 'list',
delta = 0,
edit = array() 
)

Implementation of hook_block().

Generates a block containing the latest poll taking the category in account.

Note:
We only support one block and operations list and view.
Parameters:
[in] $op Operation being performed
[in] $delta The block being checked
[in] $edit The block settings being saved from the configuration form
Returns:
The specialized block, the default Poll block, or NULL

References _mo_poll_block_configure(), _mo_poll_default(), _mo_poll_node(), and _mo_poll_taxonomy().

mo_poll_help ( path,
arg 
)

Implementation of hook_help().

Parameters:
[in] $path The path for which help is being queried
[in] $arg The ignored argument
Returns:
The help string or NULL
Documentation generated by Doxygen on Sat Mar 12 16:05:35 2011