How can I get the $delta of block created using UI? I have a created a block using UI .I want to change the content of the block programmatically.
For this I am using hook_block_view_alter(&amp;$data, $block) for it as follows:
I have just created a block using UI and I am going to assign certain pages which will be able to see that view..

function hook_block_view_alter(&amp;$data, $block) {
if ($block-&gt;delta == 'HOW CAN I GET THE $DELTA here') {
$data['#markup'] = '&lt;a href="www.google.com"&gt;Google&lt;/a&gt;';

} 

}
If you go to admin/structure/block and mouseover the "configure" link you'll see something like this for blocks added through UI:

/admin/structure/block/manage/block/1/configure

something like this for blocks created with views: 

/admin/structure/block/manage/views/81e6b321879efa58ba9e546521c14467/configure

something like this for blocks created with webform: 

/admin/structure/block/manage/webform/client-block-50/configure

something like this for blocks created by the system (core):

/admin/structure/block/manage/system/main/configure

I've bolded the deltas and italicized the modules in each example.