Made to Order Software Corporation Logo

MO Label Inside: mo_label_inside.module File Reference

mo_label_inside.module File Reference

Definition of the MO Label Inside filter. More...

Enumerations

enum  MO_LABEL_INSIDE_VERSION
 

Define the version of the MO Label Inside module.

More...

Functions

 mo_label_inside_init ()
 Check whether this page is affected by MO Label Inside.

 _mo_label_inside_check ($q)
 Check whether the user authorized this label.

 mo_label_inside_perm ()
 Set of permissions for the MO Label Inside module.

 mo_label_inside_menu ()
 Implementation of hook_menu().


Detailed Description

The MO Label Inside moves the label of an HTML input element in front of or behind the input element and uses JavaScript to tweak the label as the user clicks and types inside the input element.

Copyright (c) 2011 Made to Order Software Corp.

http://www.m2osw.com/mo_label_inside 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 Label Inside module. This will always be the same as the version defined in Drupal (throught the .info file.)


Function Documentation

_mo_label_inside_check ( q  ) 

This function goes through the list of label definitions and checks whether the current screen should be converted or not.

Parameters:
[in] $q The $_GET['q'] path or equivalent.
Returns:
FALSE if no path match the input, the corresponding identifier pattern otherwise.

Referenced by mo_label_inside_init().

mo_label_inside_init (  ) 

First, this function checks whether this page is expected to be run through the MO Label Inside feature. If so, then it loads the MO Label Inside CSS and JS files, and it generates the necessary dynamic JavaScript code.

See files mo_label_inside.css and mo_label_inside.js

References _mo_label_inside_check().

mo_label_inside_menu (  ) 

This function generates the array of menu items.

Returns:
The array of menu items to present to the system.

References _mo_label_inside_menu().

mo_label_inside_perm (  ) 

This function returns an array of permissions used by the MO Label Inside module.

Returns:
Array of permissions.
Documentation generated by Doxygen on Mon Mar 28 22:50:29 2011