function views_handler_field_custom_pre_render_move_text in Views (for Drupal 7) 8.3
Same name and namespace in other branches
- 7.3 handlers/views_handler_field_custom.inc \views_handler_field_custom_pre_render_move_text()
Prerender function to move the textarea to the top.
1 string reference to 'views_handler_field_custom_pre_render_move_text'
- Custom::buildOptionsForm in lib/
Drupal/ views/ Plugin/ views/ field/ Custom.php - Default options form that provides the label widget that all fields should have.
File
- ./
views.module, line 2221 - Primarily Drupal hooks and global API functions to manipulate views.
Code
function views_handler_field_custom_pre_render_move_text($form) {
$form['text'] = $form['alter']['text'];
$form['help'] = $form['alter']['help'];
unset($form['alter']['text']);
unset($form['alter']['help']);
return $form;
}