V1 RC
Signed-off-by: bachy <git@g-u-i.net>
This commit is contained in:
parent
e31dc0d4fc
commit
b920153c13
@ -61,4 +61,58 @@ function computed_field_field_identifiant_compute(&$entity_field, $entity_type,
|
||||
|
||||
function computed_field_field_identifiant_display($field, $entity_field_item, $entity_lang, $langcode) {
|
||||
return $entity_field_item['value'];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Implements hook_form_alter().
|
||||
*/
|
||||
function idmaterio_form_alter(&$form, &$form_state, $form_id) {
|
||||
if($form_id == "materiau_node_form"){
|
||||
// $node = $form_state['node'];
|
||||
// dsm($form, '$form');
|
||||
// dsm($form_state, '$form_state');
|
||||
// //
|
||||
// $form['field_id_materio']['#markup'] = $node->field_famille['und']['default_value'] .'-'. $node->field_identifiant['und'][0]['value'];
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
function idmaterio_nodeformcols_pre_form_alter(&$form){
|
||||
// dsm($form, 'node pre form col alter $form');
|
||||
|
||||
// $form['field_identifiant']['#prefix'] = '<div class="materio-id">';
|
||||
// $form['field_identifiant'] ['#markup'] = '<p>Hello !</p>';
|
||||
// $form['field_identifiant']['#suffix'] = '</div>';
|
||||
|
||||
// $form['materio_id'] = array(
|
||||
// '#type'=>'markup',
|
||||
// '#prefix' => '<div class="materio-id">',
|
||||
// '#markup' => '<p>Hello !</p>',
|
||||
// '#suffix' => '</div>',
|
||||
// '#weight' => $form['field_identifiant']['#weight'],
|
||||
// );
|
||||
|
||||
|
||||
}
|
||||
|
||||
function idmaterio_nodeformcols_post_form_alter(&$form){
|
||||
// dsm($form, 'node post form col alter $form');
|
||||
|
||||
// $form['materio_id'] = array(
|
||||
// '#type'=>'markup',
|
||||
// '#prefix' => '<div class="materio-id">',
|
||||
// '#markup' => '<p>Hello !</p>',
|
||||
// '#suffix' => '</div>',
|
||||
// '#weight' => $form['field_identifiant']['#weight'],
|
||||
// );
|
||||
//
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user