summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--includes/plugins.inc51
-rw-r--r--plugins/views_plugin_style_table.inc51
-rw-r--r--views_ui.module2
3 files changed, 52 insertions, 52 deletions
diff --git a/includes/plugins.inc b/includes/plugins.inc
index 4c7c346..661d2dc 100644
--- a/includes/plugins.inc
+++ b/includes/plugins.inc
@@ -398,6 +398,57 @@ class views_plugin extends views_object {
* @see hook_views_plugins
*/
+
+/**
+ * Theme the form for the table style plugin
+ */
+function theme_views_ui_style_plugin_table($form) {
+ $output = drupal_render($form['description_markup']);
+
+ $header = array(
+ t('Field'),
+ t('Column'),
+ t('Separator'),
+ array(
+ 'data' => t('Sortable'),
+ 'align' => 'center',
+ ),
+ array(
+ 'data' => t('Default sort'),
+ 'align' => 'center',
+ ),
+ );
+ $rows = array();
+ foreach (element_children($form['columns']) as $id) {
+ $row = array();
+ $row[] = drupal_render($form['info'][$id]['name']);
+ $row[] = drupal_render($form['columns'][$id]);
+ $row[] = drupal_render($form['info'][$id]['separator']);
+ if (!empty($form['info'][$id]['sortable'])) {
+ $row[] = array(
+ 'data' => drupal_render($form['info'][$id]['sortable']),
+ 'align' => 'center',
+ );
+ $row[] = array(
+ 'data' => drupal_render($form['default'][$id]),
+ 'align' => 'center',
+ );
+ }
+ else {
+ $row[] = '';
+ $row[] = '';
+ }
+ $rows[] = $row;
+ }
+
+ // Add the special 'None' row.
+ $rows[] = array(t('None'), '', '', '', array('align' => 'center', 'data' => drupal_render($form['default'][-1])));
+
+ $output .= theme('table', $header, $rows);
+ $output .= drupal_render($form);
+ return $output;
+}
+
/**
* @}
*/
diff --git a/plugins/views_plugin_style_table.inc b/plugins/views_plugin_style_table.inc
index 9a20cc2..59d1db8 100644
--- a/plugins/views_plugin_style_table.inc
+++ b/plugins/views_plugin_style_table.inc
@@ -249,54 +249,3 @@ class views_plugin_style_table extends views_plugin_style {
return $output;
}
}
-
-/**
- * Theme the form for the table style plugin
- */
-function theme_views_ui_style_plugin_table($form) {
- $output = drupal_render($form['description_markup']);
-
- $header = array(
- t('Field'),
- t('Column'),
- t('Separator'),
- array(
- 'data' => t('Sortable'),
- 'align' => 'center',
- ),
- array(
- 'data' => t('Default sort'),
- 'align' => 'center',
- ),
- );
- $rows = array();
- foreach (element_children($form['columns']) as $id) {
- $row = array();
- $row[] = drupal_render($form['info'][$id]['name']);
- $row[] = drupal_render($form['columns'][$id]);
- $row[] = drupal_render($form['info'][$id]['separator']);
- if (!empty($form['info'][$id]['sortable'])) {
- $row[] = array(
- 'data' => drupal_render($form['info'][$id]['sortable']),
- 'align' => 'center',
- );
- $row[] = array(
- 'data' => drupal_render($form['default'][$id]),
- 'align' => 'center',
- );
- }
- else {
- $row[] = '';
- $row[] = '';
- }
- $rows[] = $row;
- }
-
- // Add the special 'None' row.
- $rows[] = array(t('None'), '', '', '', array('align' => 'center', 'data' => drupal_render($form['default'][-1])));
-
- $output .= theme('table', $header, $rows);
- $output .= drupal_render($form);
- return $output;
-}
-
diff --git a/views_ui.module b/views_ui.module
index fa5694f..0b5ac2d 100644
--- a/views_ui.module
+++ b/views_ui.module
@@ -210,7 +210,7 @@ function views_ui_theme() {
// On behalf of a plugin
'views_ui_style_plugin_table' => array(
'arguments' => array('form' => NULL),
- 'file' => 'plugins/views_plugin_style_table.inc',
+ 'file' => 'includes/plugins.inc',
),
);
}