You are here

function command_buttons_load in Command Buttons 7

Button entity loader.

See also

entity_load().

File

./command_buttons.module, line 244

Code

function command_buttons_load($bid) {
  if (!is_numeric($bid)) {
    return FALSE;
  }
  $conditions = array();
  $entities = command_buttons_load_multiple(array(
    $bid,
  ), $conditions);
  if ($entities) {
    return reset($entities);
  }
}