definition['multiple'])) { $form['multiple_note'] = array( '#markup' => t('Note: This is a multi-valued relationship, which is currently not supported. ' . 'Only the first related entity will be shown.'), '#weight' => -5, ); } } /** * Called to implement a relationship in a query. * * As we don't add any data to the query itself, we don't have to do anything * here. Views just don't thinks we have been called unless we set our * $alias property. Otherwise, this override is just here to keep PHP from * blowing up by calling inexistent methods on the query plugin. */ public function query() { $this->alias = $this->options['id']; } }