updating d6 hook_block code to d7 block schema functions.