Perhaps this module help you or give you an idea. What it does is create a block to show on the list and if you activate it only appears on the front.
PHP Code:
<? Php
/ *
* Module display.module
* Author: Aldous: No rights reserved
*
**
display_block function ($ op = 'list', $ delta = 0, $ edit = array ()) {
switch ($ op) {
case 'list':
$ Blocks [0] = array (
'Info' => t (‘Block Trail'),
)
return $ blocks;
case 'view':
switch ($ delta) {
case 0:
$ Block [‘topic’] = "Block title";
$ Block ['content'] = "Hello block:)"
break;
}
// Display only in frontpage
if (arg (1) =='') {
return $ block;
}
}
}
Bookmarks