From 681620b3169374c515909a791fe6098ec1c9b31d Mon Sep 17 00:00:00 2001 From: YesCT Date: Thu, 23 Feb 2017 13:29:38 +0000 Subject: [PATCH] Issue #2854212: Rename Drupal to Backdrop (almost everywhere). Some links to drupal.org still need to be drupal, for example, in READEME.md. --- audiofield.module | 4 ++-- audiofield.players.inc | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/audiofield.module b/audiofield.module index 9d860b8..81fee1e 100644 --- a/audiofield.module +++ b/audiofield.module @@ -11,7 +11,7 @@ function audiofield_menu() { $items['admin/config/media/audiofield'] = array( 'title' => 'Audio Field', 'description' => 'Configure Audiofield.', - 'page callback' => 'drupal_get_form', + 'page callback' => 'backdrop_get_form', 'page arguments' => array('audiofield_admin_settings_form'), 'access arguments' => array('administer site configuration'), 'type' => MENU_NORMAL_ITEM, @@ -219,7 +219,7 @@ function audiofield_admin_settings_form_submit($form, &$form_state) { $config->set('audioplayer_ogg', $form_state['values']['audiofield_audioplayer_ogg']); $config->set('players_dir', $form_state['values']['audiofield_players_dir']); $config->save(); - drupal_set_message(t('The AudioField configuration options have been saved.')); + backdrop_set_message(t('The AudioField configuration options have been saved.')); } /** diff --git a/audiofield.players.inc b/audiofield.players.inc index 96ae525..d648fd5 100644 --- a/audiofield.players.inc +++ b/audiofield.players.inc @@ -255,14 +255,14 @@ function audiofield_soundmanager2($player_path, $audio_file) { '#type' => 'markup', '#markup' => '', ); - drupal_add_html_head($ie_js, 'audiofield'); + backdrop_add_html_head($ie_js, 'audiofield'); - drupal_add_js($player_base_path . '/script/soundmanager2.js', array('weight' => 0)); + backdrop_add_js($player_base_path . '/script/soundmanager2.js', array('weight' => 0)); //360 viewer - drupal_add_js($player_base_path . '/demo/360-player/script/berniecode-animator.js', array('weight' => 1)); - drupal_add_js($player_base_path . '/demo/360-player/script/360player.js', array('weight' => 1)); - drupal_add_css($player_base_path . '/demo/360-player/360player.css'); + backdrop_add_js($player_base_path . '/demo/360-player/script/berniecode-animator.js', array('weight' => 1)); + backdrop_add_js($player_base_path . '/demo/360-player/script/360player.js', array('weight' => 1)); + backdrop_add_css($player_base_path . '/demo/360-player/360player.css'); return '