Marmot Manual

V. The MU_Form_Block Class

Introduction

The MU_Form_Block class is never instantiated directly, but is used in the process of form creation. MU_Form_Section::add_block() returns an MU_Form_Block object. The properties and methods below can be used on that object.

Properties

Read/write properties

These properties can be set by the developer after creating an MU_Form_Block object.

  • title - The title of the block, often displayed above the block.

  • instructions - a block of instructions, often displayed to the right of all of the input items in the block.

Table of Contents

MU_Form_Block::add_input_item - Adds a form element to a section