Browse Source

replaced other depracated functions like drupal_get_path

9.x-3.0
Paul Pound 1 week ago
parent
commit
a13b7c260e
  1. 4
      includes/doi.inc
  2. 2
      upei_roblib_ill.install
  3. 2
      upei_roblib_ill.module

4
includes/doi.inc

@ -157,8 +157,8 @@ function upei_roblib_ill_doi_name_from_url($doi_url) {
* @param bool parse
* parse the doi to remove prefix and whitespace etc.
*
* @return object
* An object as provided by drupal_http_request().
* @return \Psr\Http\Message\ResponseInterface
* An object as provided by \Drupal::httpClient()->get().
*/
function upei_roblib_ill_doi_load($doi, $parse = TRUE) {
// Allows for $id to pass a DOI url string or the DOI name.

2
upei_roblib_ill.install

@ -6,7 +6,7 @@
function upei_roblib_ill_update_7100() {
db_change_field('upei_roblib_ill_request', 'isbn', 'isbn',
\Drupal::database()->schema()->changeField('upei_roblib_ill_request', 'isbn', 'isbn',
array(
'description' => 'book isbn',
'type' => 'varchar',

2
upei_roblib_ill.module

@ -20,7 +20,7 @@ function upei_roblib_ill_doi_callback($form, &$form_state) {
function upei_roblib_ill_views_api() {
return [
'api' => 3,
'path' => drupal_get_path('module', 'upei_roblib_ill') . '/views',
'path' => \Drupal::service('extension.list.module')->getPath('upei_roblib_ill') . '/views',
];
}

Loading…
Cancel
Save