function blocktheme_format_vars_admin in Block Theme 8
Same name and namespace in other branches
- 6 blocktheme.module \blocktheme_format_vars_admin()
- 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_form_alter in ./
blocktheme.module - Form for updating a block.
File
- ./
blocktheme.module, line 292 - Provides a configuration option to select custom themes for blocks
Code
function blocktheme_format_vars_admin($block_vars) {
$formatted_vars = '';
if ($block_vars) {
$_formatted_vars = array();
foreach ($block_vars as $key => $value) {
$_formatted_vars[] = $key . '|' . $value;
}
$formatted_vars = implode("\n", $_formatted_vars);
}
return $formatted_vars;
}