You are here

function _webform_defaults_matrix in Webform Matrix Component 7.4

Same name and namespace in other branches
  1. 6 components/matrix.inc \_webform_defaults_matrix()
  2. 7 components/matrix.inc \_webform_defaults_matrix()
  3. 7.2 components/matrix.inc \_webform_defaults_matrix()
  4. 7.3 components/matrix.inc \_webform_defaults_matrix()

Implements _webform_defaults_component().

File

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

Code

function _webform_defaults_matrix() {
  return array(
    'name' => '',
    'form_key' => NULL,
    'pid' => 0,
    'weight' => 0,
    'value' => '',
    'mandatory' => 0,
    'extra' => array(
      'matrix_col' => '1',
      'matrix_row' => '1',
      'title_display' => 0,
      'description' => '',
      'description_above' => FALSE,
      'private' => FALSE,
    ),
  );
}