You are here

protected function Bean::deltaExists in Bean (for Drupal 7) 7

Check against the Database if a specific delta exists.

1 call to Bean::deltaExists()
Bean::checkDelta in includes/bean.core.inc
Set the delta function

File

includes/bean.core.inc, line 432
Bean classes and plugin interface

Class

Bean
The Bean entity class

Code

protected function deltaExists($delta) {
  return db_select('bean', 'b')
    ->fields('b', array(
    'bid',
  ))
    ->condition('delta', $delta)
    ->execute()
    ->fetchField();
}