Made to Order Software Corporation Logo

MO Button: mo_button.admin.inc File Reference

Definition of the MO Button administrative forms. More...

Functions

 mo_button_settings ()
 Generate the global administration form.

 mo_button_buttons ()
 Generate the administration form.

 mo_button_edit (&$form_state, $name)
 Generate the settings form for a button.

 mo_button_edit_submit ($form, &$form_state)
 Submit the button information.


Detailed Description

This file includes the administration of the MO Button module. It allows you to select the different parts to use with your buttons.

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

http://www.m2osw.com/mo_button 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_button_buttons (  ) 

This function generates the MO Button administration form. It is used for the end users to enter a set of images used to create his buttons.

Returns:
An HTML string with the button form.

References mo_button_get_path().

mo_button_edit ( &$  form_state,
name 
)

This function generates a form used to create and later edit the parameters of a button.

Parameters:
[in] $form_state The current state of this form
[in] $name The button identifier, name or NULL
Returns:
An array representing the MO Button edit form.

References mo_button_load().

mo_button_edit_submit ( form,
&$  form_state 
)

This function saves the data from the submitted form.

The data is saved in the mo_button_settings table.

Parameters:
[in] $form The form being submitted
[in] $form_state The current state of this form

References mo_button_save().

mo_button_settings (  ) 

This function generates the global MO Button administration form. It is used for the end users to enter the path to the button images.

Returns:
An array representing the global MO Button administration form.
Documentation generated by Doxygen on Sat Mar 12 16:05:23 2011