Commit ca129144 authored by catch's avatar catch
Browse files

Issue #2102449 by swentel: Remove drupal_set_title() in field_ui module controllers.

parent a2e539c7
......@@ -91,8 +91,6 @@ public function buildForm(array $form, array &$form_state, FieldInstanceInterfac
$field = $this->instance->getField();
$form['#field'] = $field;
$description = '<p>' . $this->t('These settings apply to the %field field everywhere it is used. These settings impact the way that data is stored in the database and cannot be changed once data has been created.', array('%field' => $this->instance->label())) . '</p>';
// Create a form structure for the field values.
......@@ -69,10 +69,11 @@ public function buildForm(array $form, array &$form_state, FieldInstanceInterfac
$field = $this->instance->getField();
$bundles = entity_get_bundles();
drupal_set_title($this->t('%instance settings for %bundle', array(
$form_title = $this->t('%instance settings for %bundle', array(
'%instance' => $this->instance->getFieldLabel(),
'%bundle' => $bundles[$entity_type][$bundle]['label'],
$form['#title'] = $form_title;
$form['#field'] = $field;
// Create an arbitrary entity object (used by the 'default value' widget).
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment