commit 658e37fd1a36321ee5e0e6bc4374737ec0733951 Author: David Valdez Date: Mon Apr 29 02:41:27 2013 -0500 1898434-46 using moduleHandler instead of drupal_alter diff --git a/core/modules/options/lib/Drupal/options/Plugin/field/widget/OptionsWidgetBase.php b/core/modules/options/lib/Drupal/options/Plugin/field/widget/OptionsWidgetBase.php index aa34941..8c05b00 100644 --- a/core/modules/options/lib/Drupal/options/Plugin/field/widget/OptionsWidgetBase.php +++ b/core/modules/options/lib/Drupal/options/Plugin/field/widget/OptionsWidgetBase.php @@ -120,17 +120,17 @@ protected function getOptions() { switch ($this->getPluginId()) { case 'options_buttons': $label = t('N/A'); - break; + break; case 'options_select': $label = ($empty_option == OptionsWidgetBase::OPTIONS_EMPTY_NONE ? t('- None -') : t('- Select a value -')); - break; + break; } $options = array('_none' => $label) + $options; } - drupal_alter('options_list', $options, $this->field); + \Drupal::moduleHandler()->alter('options_list', $options, $this->field); array_walk_recursive($options, array($this, 'sanitizeLabel'));