function nfcbiblio_nodeformcols_pre_form_alter in Node form columns 7
Implements hook_nodeformcols_pre_form_alter().
Implement this hook to tell nodeformcols what variant the form is before any alterations to the form is made.
Parameters
array $form: The form.
Return value
void
File
- ./
nfcbiblio.module, line 52
Code
function nfcbiblio_nodeformcols_pre_form_alter(&$form) {
if ($form['#node']->type == 'biblio') {
if (!empty($form['biblio_type']['#value'])) {
$form['#nodeformcols_variant'] = $form['biblio_type']['#value'];
}
}
}