Definition of the MO References administrative forms. More...
Functions | |
mo_references_settings () | |
Generate the administration form. | |
mo_references_edit ($form_state, $document_name) | |
Generate the settings form for a document. | |
mo_references_edit_submit ($form, &$form_state) | |
Submit the references of a document. | |
mo_references_get_formats () | |
Generate an option list of formats. | |
mo_references_content () | |
Form letting users select options for their documents. | |
theme_mo_references_content ($form) | |
Theme the list of documents. |
This file includes the administration of the MO References module. It will show you the forms used to define what needs to be done with such and such reference and global settings.
http://www.m2osw.com/mo_references 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.
mo_references_content | ( | ) |
For each document, it is possible to define a set of options such as whether a link should be generated so people can download that document tarball for local perusal.
mo_references_edit | ( | $ | form_state, | |
$ | document_name | |||
) |
This function generates a form used to edit the default parameters for a specific document.
[in] | $form_state | The current state of this form |
[in] | $document_name | The name of the document being editing |
References mo_references_get_formats(), and mo_references_load().
mo_references_edit_submit | ( | $ | form, | |
&$ | form_state | |||
) |
This function saves the data from the submitted form.
The data is saved in the mo_references_documents table.
[in] | $form | The form being submitted |
[in] | $form_state | The current state of this form |
References mo_references_save().
mo_references_get_formats | ( | ) |
This function generates an array from the list of available formats.
Referenced by mo_references_edit().
mo_references_settings | ( | ) |
This function generates the MO References administration form. It is used for the end users to enter a set of global settings such as the folder where the documentation tarballs are stored.
theme_mo_references_content | ( | $ | form | ) |
This function generates a table with the list of documents available on your web server.
[in] | $form | The form with the list of documents to be themed |