original_string: protected function actionListFieldValue()
      {
          list($selected, $action) = $this->getPostedAction();
  
          $deleted = 0;
          foreach ($selected as $field_value_id) {
              if ($action === 'delete' && $this->access('field_value_delete')) {
                  $deleted += (int) $this->field_value->delete($field_value_id);
              }
          }
  
          if ($deleted > 0) {
              $message = $this->text('Deleted %num item(s)', array('%num' => $deleted));
              $this->setMessage($message, 'success');
          }
      }
code: protected function actionListFieldValue()
      {
          list($selected, $action) = $this->getPostedAction();
  
          $deleted = 0;
          foreach ($selected as $field_value_id) {
              if ($action === 'delete' && $this->access('field_value_delete')) {
                  $deleted += (int) $this->field_value->delete($field_value_id);
              }
          }
  
          if ($deleted > 0) {
              $message = $this->text('Deleted %num item(s)', array('%num' => $deleted));
              $this->setMessage($message, 'success');
          }
      }
code_tokens: protected function actionListFieldValue ( ) { list ( $ selected , $ action ) = $ this -> getPostedAction ( ) ; $ deleted = 0 ; foreach ( $ selected as $ field_value_id ) { if ( $ action === 'delete' && $ this -> access ( 'field_value_delete' ) ) { $ deleted += ( int ) $ this -> field_value -> delete ( $ field_value_id ) ; } } if ( $ deleted > 0 ) { $ message = $ this -> text ( 'Deleted %num item(s)' , array ( '%num' => $ deleted ) ) ; $ this -> setMessage ( $ message , 'success' ) ; } }
docstring: Applies an action to the selected field values
docstring_tokens: Applies an action to the selected field values