/**
  * Method used to remove the custom field options associated with
  * a given list of custom field IDs.
  *
  * @access  public
  * @param   array $ids The list of custom field IDs
  * @return  boolean
  */
 function removeOptionsByFields($ids)
 {
     if (!is_array($ids)) {
         $ids = array($ids);
     }
     $items = implode(", ", Misc::escapeInteger($ids));
     $stmt = "SELECT\n                    cfo_id\n                 FROM\n                    " . APP_DEFAULT_DB . "." . APP_TABLE_PREFIX . "custom_field_option\n                 WHERE\n                    cfo_fld_id IN ({$items})";
     $res = $GLOBALS["db_api"]->dbh->getCol($stmt);
     if (PEAR::isError($res)) {
         Error_Handler::logError(array($res->getMessage(), $res->getDebugInfo()), __FILE__, __LINE__);
         return false;
     } else {
         Custom_Field::removeOptions($ids, $res);
         return true;
     }
 }