function matrix_form_alter in Matrix field 6
Same name and namespace in other branches
- 6.2 matrix.module \matrix_form_alter()
Implmentation of hook_form_alter()
Disable the multiple values settings. This module won't work with them.
File
- ./
matrix.module, line 354 - Defines simple matrix field types.
Code
function matrix_form_alter(&$form, $form_state, $form_id) {
if ($form_id == 'content_field_edit_form' && $form['#field']['type'] == 'matrix') {
$form['field']['multiple']['#type'] = 'hidden';
//hide the multiple values form. It does not work with this module!
}
}