You are here

function _webform_defaults_grid in Webform 6.2

Same name and namespace in other branches
  1. 5.2 components/grid.inc \_webform_defaults_grid()
  2. 6.3 components/grid.inc \_webform_defaults_grid()
  3. 7.4 components/grid.inc \_webform_defaults_grid()
  4. 7.3 components/grid.inc \_webform_defaults_grid()

Create a default grid component.

File

components/grid.inc, line 11
Webform module grid component.

Code

function _webform_defaults_grid() {
  return array(
    'name' => '',
    'form_key' => NULL,
    'email' => 1,
    'mandatory' => 0,
    'pid' => 0,
    'weight' => 0,
    'extra' => array(
      'options' => '',
      'questions' => '',
      'optrand' => 0,
      'qrand' => 0,
      'description' => '',
    ),
  );
}