Textpattern PHP Cross Reference Content Management Systems

Summary: /textpattern/include/txp_form.php - 599 lines - 17387 bytes - Source - Print

Description: Forms panel.

Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 9 functions

form_list()
form_multi_edit()
form_create()
form_edit()
form_save()
form_delete()
form_set_type()
formTypes()
form_tagbuild()

Functions

Functions that are not part of a class:

form_list($curname line: 103
Renders a list of form templates.

This function returns a list of form templates, wrapped in a multi-edit
form widget.

return: string HTML
param: string $curname The selected form
form_multi_edit()  line: 180
Processes multi-edit actions.

form_create()  line: 223
Creates a new form.

Directs requests back to the main editor panel, armed with a
'form_create' step.
form_edit($message = '')  line: 235
Renders the main Form editor panel.

param: string|array $message The activity message
form_save()  line: 403
Saves a form template.

form_delete($name line: 499
Deletes a form template with the given name.

return: bool FALSE on error
param: string $name The form template
form_set_type($name, $type line: 519
Changes a form template's type.

return: bool FALSE on error
param: string $name The form template
param: string $type The new type
formTypes($type, $blank_first = true, $id = 'type', $disabled = false)  line: 541
Renders a <select> input listing all form types.

return: string HTML
param: string $type        The selected option
param: bool   $blank_first If TRUE, the list defaults to an empty selection
param: string $id          HTML id attribute value
param: bool   $disabled    If TRUE renders the select disabled
form_tagbuild()  line: 559
Return a list of tag builder tags.

return: HTML

title

Body