05/08/2014 |

Sometimes it is desirable in Moodle 1.9 to create a block which can only used as sticky block, the magic to do it is simple just add the following method to your block and you are ready to go:
function user_can_addto($page) { return defined('ADMIN_STICKYBLOCKS'); }