There is a block which its body is produced by PHP Code
. I need to set a variable before loading the block and use it in it. This is my code
function THEME_preprocess_block(&$variables){
$variables['var']="some text";
}
when I open the block configuration page and in its body I write
<?php print $var;?>
it prints nothing. How do I can pass variable from block template page in to the block body in the block configuration page?