Skip to content

Commit

Permalink
change url of edit to match new admin structure and update the argume…
Browse files Browse the repository at this point in the history
…nt index
  • Loading branch information
bradfordcondon committed Jan 12, 2018
1 parent 1a0b009 commit bd9f6c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions includes/elasticsearch_connection.form.inc
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ function elasticsearch_connection_form($form, &$form_state) {
$label = $remote->label;
$description = $remote->description;
$status = "<span class='elastic-status-circle' id='remote-host-{$remote->id}-circle'></span> <span id='remote-host-{$remote->id}'>Loading</span>";
$edit = l("Edit", "admin/tripal/extension/tripal_elasticsearch/edit/{$remote->id}");
$delete = l("Delete", "admin/tripal/extension/tripal_elasticsearch/delete/{$remote->id}");
$edit = l("Edit", "admin/tripal/extension/tripal_elasticsearch/elasticsearch_connection/edit/{$remote->id}");
$delete = l("Delete", "admin/tripal/extension/tripal_elasticsearch/elasticsearch_connection/delete/{$remote->id}");

$rows[] = [$url, $label, $description, $status, $edit, $delete];
}
Expand Down
4 changes: 2 additions & 2 deletions tripal_elasticsearch.module
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function tripal_elasticsearch_menu() {
$items[$admin_url_base . '/elasticsearch_connection/edit/%'] = [
'title' => t('Edit Remote Server'),
'page callback' => 'drupal_get_form',
'page arguments' => ['remote_edit_confirm', 5],
'page arguments' => ['remote_edit_confirm', 6],
'access arguments' => ['administer tripal elasticsearch'],
'file' => 'includes/elasticsearch_connection.form.inc',
'file_path' => drupal_get_path('module', 'tripal_elasticsearch'),
Expand All @@ -75,7 +75,7 @@ function tripal_elasticsearch_menu() {
$items[$admin_url_base . '/elasticsearch_connection/delete/%'] = [
'title' => t('Delete Remote Server'),
'page callback' => 'drupal_get_form',
'page arguments' => ['remote_delete_confirm', 5],
'page arguments' => ['remote_delete_confirm', 6],
'access arguments' => ['administer tripal elasticsearch'],
'file' => 'includes/elasticsearch_connection.form.inc',
'file_path' => drupal_get_path('module', 'tripal_elasticsearch'),
Expand Down

0 comments on commit bd9f6c0

Please sign in to comment.