You are here

function skinr_style_array_to_string in Skinr 6

Helper function to convert an array of classes settings into a string, usable in HTML.

3 calls to skinr_style_array_to_string()
skinr_preprocess in ./skinr.module
Implementation of hook_preprocess().
theme_panels_skinr_style_render_pane in modules/panels/skinr.inc
Render pane callback.
theme_panels_skinr_style_render_region in modules/panels/skinr.inc
Render panel callback.

File

./skinr.module, line 421

Code

function skinr_style_array_to_string($style) {
  $return = array();
  foreach ($style as $entry) {
    if (is_array($entry)) {
      foreach ($entry as $subentry) {
        if (!empty($subentry)) {
          $return[] = check_plain($subentry);
        }
      }
    }
    elseif (!empty($entry)) {
      $return[] = check_plain($entry);
    }
  }
  return implode(' ', $return);
}