You are here

function biblio_ui_get_ids_from_string in Bibliography Module 7.3

Get IDs from string of comma separated numbers.

Parameters

$bids_string: Comma-separated list of Biblio IDs.

Return value

array|bool Array of Biblio IDs, or FALSE if none found.

2 calls to biblio_ui_get_ids_from_string()
biblio_ui_export_access in modules/biblio_ui/biblio_ui.module
Menu access; Allow export based on existing Biblio style and user access.
biblio_ui_export_menu_item in modules/biblio_ui/biblio_ui.module
Export a Biblio entity to a file by a given format.

File

modules/biblio_ui/biblio_ui.module, line 1238
Main functionality file for the biblio UI module.

Code

function biblio_ui_get_ids_from_string($bids_string = '') {
  if (!($bids = explode(',', $bids_string))) {
    return;
  }

  // Verify each item is a number.
  foreach ($bids as $bid) {
    if (!is_numeric($bid)) {
      return;
    }
  }
  return $bids;
}