You are here

function _hosting_server_preprocess_expand in Hosting 7.4

Same name and namespace in other branches
  1. 7.3 server/hosting_server.module \_hosting_server_preprocess_expand()

Preprocess $variables for all in $services.

Since we're adding headers and fields to our table render array, we need to adjust other $variables as their passed to the template.

1 call to _hosting_server_preprocess_expand()
hosting_server_preprocess in server/hosting_server.module
Implements hook_preprocess().

File

server/hosting_server.module, line 897

Code

function _hosting_server_preprocess_expand(&$element, $services) {
  foreach ($services as $i => $name) {
    $element[$i] = $element['services'];
  }
  unset($element['services']);
}