diff -u b/eck.bundle.inc b/eck.bundle.inc --- b/eck.bundle.inc +++ b/eck.bundle.inc @@ -222,7 +222,7 @@ '#type' => 'textfield', '#title' => t('Type'), '#default_value' => $bundle->label, - '#description' => t('A human readable name for the entity type'), + '#description' => t('A human readable name for the bundle'), '#required' => TRUE, '#size' => 30, ); @@ -312,13 +312,13 @@ $bundle->config = $bundle_config; // Save the bundle object to the database. - $status = $bundle->save(); + $bundle->save(); drupal_get_schema(NULL, TRUE); entity_info_cache_clear(); menu_rebuild(); - if (!$status) { + if (!$bundle->is_new) { drupal_set_message(t('the %bundle bundle for entity type %entity_type has been updated.', array('%bundle' => $bundle_name, '%entity_type' => $entity_type->name))); }