You are here

function footable_preprocess_views_ui_style_plugin_table in FooTable 8.2

Implements hook_preprocess_views_ui_style_plugin_table().

Removes the responsive values from the Views UI plugin table.

File

./footable.module, line 30
Provides Views integration for the jQuery FooTable plugin.

Code

function footable_preprocess_views_ui_style_plugin_table(&$variables) {
  if (isset($variables['form']['footable'], $variables['table']['#rows'])) {
    array_pop($variables['table']['#header']);
    $lastRow = end($variables['table']['#rows']);
    foreach ($variables['table']['#rows'] as &$row) {
      if ($row !== $lastRow) {
        array_pop($row);
        continue;
      }
      unset($row['colspan']);
    }
  }
}