You are here

function _backup_db_format_options in Backup Database 8

Format results as select list options.

2 calls to _backup_db_format_options()
BackupDatabaseCronForm::buildForm in src/Form/BackupDatabaseCronForm.php
Form constructor.
BackupDatabaseTablesForm::buildForm in src/Form/BackupDatabaseTablesForm.php
Form constructor.

File

./backup_db.module, line 76
backup_db.module

Code

function _backup_db_format_options($results) {
  $options = array();
  foreach ($results as $result) {
    $value = current((array) $result);
    $options[$value] = $value;
  }
  return $options;
}