They currently display only the bean delta. We can do better. The panel at admin/structure/block-types/manage/%bean-type also displays an ugly title (the bean-type machine name!).

CommentFileSizeAuthor
#1 1537456-bean-better-titles.patch1.59 KBbarraponto

Comments

barraponto’s picture

Status: Active » Needs review
StatusFileSize
new1.59 KB
alexweber’s picture

Status: Needs review » Reviewed & tested by the community

Applies cleanly and works as advertised!

indytechcook’s picture

+++ b/includes/bean.pages.incundefined
@@ -9,6 +9,8 @@
@@ -17,6 +19,7 @@ function bean_edit(Bean $bean) {

@@ -17,6 +19,7 @@ function bean_edit(Bean $bean) {
  */
 function bean_add($type) {
   $bean = bean_create(array('type' => $type));
+  drupal_set_title(t('Create @type block', array('@type' => $type->getLabel())), PASS_THROUGH);
 
   return drupal_get_form('bean_form', $bean, $type);

$type is not an object here

There was on error that I noted above but I fixed it in my commit. Changing to RTBC so I remember to push.

indytechcook’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.