function draggableviews_plugin_style_draggabletable::render in DraggableViews 7
Same name and namespace in other branches
- 6.3 views/draggableviews_plugin_style_draggabletable.inc \draggableviews_plugin_style_draggabletable::render()
- 6 draggableviews_plugin_style_draggabletable.inc \draggableviews_plugin_style_draggabletable::render()
- 6.2 draggableviews_plugin_style_draggabletable.inc \draggableviews_plugin_style_draggabletable::render()
Render the draggable table style.
Overrides views_plugin_style::render
File
- views/
draggableviews_plugin_style_draggabletable.inc, line 386 - Draggableviews style plugin definition.
Class
- draggableviews_plugin_style_draggabletable
- Style plugin to render each item as a row in a draggable table; Inherits all from views_plugin_table.
Code
function render() {
// We need to wrap around a form to make it possible to submit changes.
// Due to the fact that multiple views (and thus also forms) can be shown on
// the same page we need to use an unique form_id for each display.
// Same displays of the same view can share the same id because the
// concerned views object is the same.
$form_id = 'draggableviews_view_draggabletable_form_' . $this->view->name . '_' . $this->view->current_display;
// TODO $this needs to have $form as its first parameter.
//return drupal_get_form($form_id, $this);
$form = drupal_get_form($form_id, $this);
$form['#draggableviews_style_plugin'] = $this;
return drupal_render($form);
}