$caption='<p>'.format_plural(count($blocks),'%label is used by 1 custom block on your site. You can not remove this block type until you have removed all of the %label blocks.','%label is used by @count custom blocks on your site. You may not remove %label until you have removed all of the %label custom blocks.',array('%label'=>$block_type->label())).'</p>';
$form['description']=array('#markup'=>$caption);
return$form;
}
returnconfirm_form(
$form,
$message,
'admin/structure/custom-blocks',
t('This action cannot be undone.'),
t('Delete')
);
}
/**
* Form submission handler for custom_block_type_delete_form().
$caption='<p>'.format_plural(count($blocks),'%label is used by 1 custom block on your site. You can not remove this block type until you have removed all of the %label blocks.','%label is used by @count custom blocks on your site. You may not remove %label until you have removed all of the %label custom blocks.',array('%label'=>$this->entity->label())).'</p>';