code: function(feature) {
          if (this.feature === feature ||
             (this.geometryTypes && OpenLayers.Util.indexOf(this.geometryTypes,
             feature.geometry.CLASS_NAME) == -1)) {
              return;
          }
          if (this.beforeSelectFeature(feature) !== false) {
              if (this.feature) {
                  this.unselectFeature(this.feature);
              }
              this.feature = feature;
              this.layer.selectedFeatures.push(feature);
              this.layer.drawFeature(feature, 'select');
              this.modified = false;
              this.resetVertices();
              this.onModificationStart(this.feature);
          }
          // keep track of geometry modifications
          var modified = feature.modified;
          if (feature.geometry && !(modified && modified.geometry)) {
              this._originalGeometry = feature.geometry.clone();
          }
      }
docs: APIMethod: selectFeature
  Select a feature for modification in standalone mode. In non-standalone
  mode, this method is called when a feature is selected by clicking.
  Register a listener to the beforefeaturemodified event and return false
  to prevent feature modification.
  
  Parameters:
  feature - {<OpenLayers.Feature.Vector>} the selected feature.