添付 | サイズ |
---|---|
view_widget_custom.zip (2.03 KB) | 2.03 KB |
/** * Implements hook_field_widget_form_alter(). */ function YOUR_MODULE_NAME_field_widget_form_alter(&$element, &$form_state, $context) { if( !isset( $element['#theme'] ) || $element['#theme']!== 'entityreference_view_widget_widget' ) return ; // change target element from '#field_suffix' to '#title' $index = 0; while( isset($element[$index] ) ){ if( isset( $element[$index]['target_id']['#field_suffix'] ) ){ $title = $element[$index]['target_id']['#field_suffix'] ; unset( $element[$index]['target_id']['#field_suffix'] ) ; $element[$index]['target_id']['#title'] = $title ; } $index ++ ; } }
添付 | サイズ |
---|---|
view_widget_custom.zip (2.03 KB) | 2.03 KB |
/** * Implements hook_field_widget_form_alter(). */ function YOUR_MODULE_NAME_field_widget_form_alter(&$element, &$form_state, $context) { if( !isset( $element['#theme'] ) || $element['#theme']!== 'entityreference_view_widget_widget' ) return ; // change target element from '#field_suffix' to '#title' $index = 0; while( isset($element[$index] ) ){ if( isset( $element[$index]['target_id']['#field_suffix'] ) ){ $title = $element[$index]['target_id']['#field_suffix'] ; unset( $element[$index]['target_id']['#field_suffix'] ) ; $element[$index]['target_id']['#title'] = $title ; } $index ++ ; } }
添付 | サイズ |
---|---|
view_widget_custom.zip (2.03 KB) | 2.03 KB |
/** * Implements hook_field_widget_form_alter(). */ function YOUR_MODULE_NAME_field_widget_form_alter(&$element, &$form_state, $context) { if( !isset( $element['#theme'] ) || $element['#theme']!== 'entityreference_view_widget_widget' ) return ; // change target element from '#field_suffix' to '#title' $index = 0; while( isset($element[$index] ) ){ if( isset( $element[$index]['target_id']['#field_suffix'] ) ){ $title = $element[$index]['target_id']['#field_suffix'] ; unset( $element[$index]['target_id']['#field_suffix'] ) ; $element[$index]['target_id']['#title'] = $title ; } $index ++ ; } }
添付 | サイズ |
---|---|
view_widget_custom.zip (2.03 KB) | 2.03 KB |
/** * Implements hook_field_widget_form_alter(). */ function YOUR_MODULE_NAME_field_widget_form_alter(&$element, &$form_state, $context) { if( !isset( $element['#theme'] ) || $element['#theme']!== 'entityreference_view_widget_widget' ) return ; // change target element from '#field_suffix' to '#title' $index = 0; while( isset($element[$index] ) ){ if( isset( $element[$index]['target_id']['#field_suffix'] ) ){ $title = $element[$index]['target_id']['#field_suffix'] ; unset( $element[$index]['target_id']['#field_suffix'] ) ; $element[$index]['target_id']['#title'] = $title ; } $index ++ ; } }
添付 | サイズ |
---|---|
view_widget_custom.zip (2.03 KB) | 2.03 KB |
/** * Implements hook_field_widget_form_alter(). */ function YOUR_MODULE_NAME_field_widget_form_alter(&$element, &$form_state, $context) { if( !isset( $element['#theme'] ) || $element['#theme']!== 'entityreference_view_widget_widget' ) return ; // change target element from '#field_suffix' to '#title' $index = 0; while( isset($element[$index] ) ){ if( isset( $element[$index]['target_id']['#field_suffix'] ) ){ $title = $element[$index]['target_id']['#field_suffix'] ; unset( $element[$index]['target_id']['#field_suffix'] ) ; $element[$index]['target_id']['#title'] = $title ; } $index ++ ; } }
添付 | サイズ |
---|---|
view_widget_custom.zip (2.03 KB) | 2.03 KB |
/** * Implements hook_field_widget_form_alter(). */ function YOUR_MODULE_NAME_field_widget_form_alter(&$element, &$form_state, $context) { if( !isset( $element['#theme'] ) || $element['#theme']!== 'entityreference_view_widget_widget' ) return ; // change target element from '#field_suffix' to '#title' $index = 0; while( isset($element[$index] ) ){ if( isset( $element[$index]['target_id']['#field_suffix'] ) ){ $title = $element[$index]['target_id']['#field_suffix'] ; unset( $element[$index]['target_id']['#field_suffix'] ) ; $element[$index]['target_id']['#title'] = $title ; } $index ++ ; } }
添付 | サイズ |
---|---|
view_widget_custom.zip (2.03 KB) | 2.03 KB |
/** * Implements hook_field_widget_form_alter(). */ function YOUR_MODULE_NAME_field_widget_form_alter(&$element, &$form_state, $context) { if( !isset( $element['#theme'] ) || $element['#theme']!== 'entityreference_view_widget_widget' ) return ; // change target element from '#field_suffix' to '#title' $index = 0; while( isset($element[$index] ) ){ if( isset( $element[$index]['target_id']['#field_suffix'] ) ){ $title = $element[$index]['target_id']['#field_suffix'] ; unset( $element[$index]['target_id']['#field_suffix'] ) ; $element[$index]['target_id']['#title'] = $title ; } $index ++ ; } }
添付 | サイズ |
---|---|
view_widget_custom.zip (2.03 KB) | 2.03 KB |
/** * Implements hook_field_widget_form_alter(). */ function YOUR_MODULE_NAME_field_widget_form_alter(&$element, &$form_state, $context) { if( !isset( $element['#theme'] ) || $element['#theme']!== 'entityreference_view_widget_widget' ) return ; // change target element from '#field_suffix' to '#title' $index = 0; while( isset($element[$index] ) ){ if( isset( $element[$index]['target_id']['#field_suffix'] ) ){ $title = $element[$index]['target_id']['#field_suffix'] ; unset( $element[$index]['target_id']['#field_suffix'] ) ; $element[$index]['target_id']['#title'] = $title ; } $index ++ ; } }
添付 | サイズ |
---|---|
view_widget_custom.zip (2.03 KB) | 2.03 KB |
/** * Implements hook_field_widget_form_alter(). */ function YOUR_MODULE_NAME_field_widget_form_alter(&$element, &$form_state, $context) { if( !isset( $element['#theme'] ) || $element['#theme']!== 'entityreference_view_widget_widget' ) return ; // change target element from '#field_suffix' to '#title' $index = 0; while( isset($element[$index] ) ){ if( isset( $element[$index]['target_id']['#field_suffix'] ) ){ $title = $element[$index]['target_id']['#field_suffix'] ; unset( $element[$index]['target_id']['#field_suffix'] ) ; $element[$index]['target_id']['#title'] = $title ; } $index ++ ; } }
添付 | サイズ |
---|---|
view_widget_custom.zip (2.03 KB) | 2.03 KB |
/** * Implements hook_field_widget_form_alter(). */ function YOUR_MODULE_NAME_field_widget_form_alter(&$element, &$form_state, $context) { if( !isset( $element['#theme'] ) || $element['#theme']!== 'entityreference_view_widget_widget' ) return ; // change target element from '#field_suffix' to '#title' $index = 0; while( isset($element[$index] ) ){ if( isset( $element[$index]['target_id']['#field_suffix'] ) ){ $title = $element[$index]['target_id']['#field_suffix'] ; unset( $element[$index]['target_id']['#field_suffix'] ) ; $element[$index]['target_id']['#title'] = $title ; } $index ++ ; } }