Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
N
node_authlink
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
node_authlink
Commits
815a1ec2
Commit
815a1ec2
authored
Aug 31, 2018
by
TuWebO
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIX - batch delete message had wrong variable for %num.
parent
b16cd0fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
node_authlink.module
node_authlink.module
+6
-5
No files found.
node_authlink.module
View file @
815a1ec2
...
...
@@ -152,11 +152,13 @@ function node_authlink_batch_generate(&$form, FormStateInterface &$form_state) {
/**
* Delete authkeys for all nodes in node type.
*
* @param $form
* @param array $form
* Form.
* @param \Drupal\Core\Form\FormStateInterface $form_state
* Form state.
*/
function
node_authlink_batch_delete
(
&
$form
,
FormStateInterface
&
$form_state
)
{
// NIDs of nodes that are in this node type
function
node_authlink_batch_delete
(
array
&
$form
,
FormStateInterface
&
$form_state
)
{
// NIDs of nodes that are in this node type
.
$query
=
db_select
(
'node'
,
'n'
);
$query
->
leftJoin
(
'node_authlink_nodes'
,
'a'
,
'n.nid = a.nid'
);
$query
->
fields
(
'n'
,
[
'nid'
])
...
...
@@ -168,10 +170,9 @@ function node_authlink_batch_delete(&$form, FormStateInterface &$form_state) {
node_authlink_delete
(
$nid
);
}
drupal_set_message
(
t
(
'%num authkeys has been deleted.'
,
[
'%num'
=>
$count
]));
drupal_set_message
(
t
(
'%num authkeys has been deleted.'
,
[
'%num'
=>
count
(
$nids
)
]));
}
/**
* Implements hook_node_load().
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment