You are here

function blocktheme_format_vars_admin in Block Theme 6

Same name and namespace in other branches
  1. 8 blocktheme.module \blocktheme_format_vars_admin()
  2. 7 blocktheme.module \blocktheme_format_vars_admin()

Formats custom variables for displaying in a block configuration form.

1 call to blocktheme_format_vars_admin()
blocktheme_form_block_admin_configure_alter in ./blocktheme.module
Form for updating a block.

File

./blocktheme.module, line 265
Provides a configuration option to select custom themes for blocks

Code

function blocktheme_format_vars_admin($block_vars) {
  $formatted_vars = '';
  if ($block_vars) {
    foreach ($block_vars as $key => $value) {
      $_formatted_vars[] = $key . '|' . $value;
    }
    $formatted_vars = implode("\n", $_formatted_vars);
  }
  return $formatted_vars;
}