updated core to 7.73
This commit is contained in:
@@ -329,6 +329,8 @@ function _node_mass_update_helper($nid, $updates) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements callback_batch_operation().
|
||||
*
|
||||
* Executes a batch operation for node_mass_update().
|
||||
*
|
||||
* @param array $nodes
|
||||
@@ -367,7 +369,9 @@ function _node_mass_update_batch_process($nodes, $updates, &$context) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Menu callback: Reports the status of batch operation for node_mass_update().
|
||||
* Implements callback_batch_finished().
|
||||
*
|
||||
* Reports the status of batch operation for node_mass_update().
|
||||
*
|
||||
* @param bool $success
|
||||
* A boolean indicating whether the batch mass update operation successfully
|
||||
@@ -471,6 +475,7 @@ function node_admin_nodes() {
|
||||
$header['operations'] = array('data' => t('Operations'));
|
||||
|
||||
$query = db_select('node', 'n')->extend('PagerDefault')->extend('TableSort');
|
||||
$query->addTag('node_admin_filter');
|
||||
node_build_filter_query($query);
|
||||
|
||||
if (!user_access('bypass node access')) {
|
||||
@@ -503,14 +508,17 @@ function node_admin_nodes() {
|
||||
$options = array();
|
||||
foreach ($nodes as $node) {
|
||||
$langcode = entity_language('node', $node);
|
||||
$l_options = $langcode != LANGUAGE_NONE && isset($languages[$langcode]) ? array('language' => $languages[$langcode]) : array();
|
||||
$uri = entity_uri('node', $node);
|
||||
if ($langcode != LANGUAGE_NONE && isset($languages[$langcode])) {
|
||||
$uri['options']['language'] = $languages[$langcode];
|
||||
}
|
||||
$options[$node->nid] = array(
|
||||
'title' => array(
|
||||
'data' => array(
|
||||
'#type' => 'link',
|
||||
'#title' => $node->title,
|
||||
'#href' => 'node/' . $node->nid,
|
||||
'#options' => $l_options,
|
||||
'#href' => $uri['path'],
|
||||
'#options' => $uri['options'],
|
||||
'#suffix' => ' ' . theme('mark', array('type' => node_mark($node->nid, $node->changed))),
|
||||
),
|
||||
),
|
||||
@@ -695,6 +703,7 @@ function node_multiple_delete_confirm($form, &$form_state, $nodes) {
|
||||
function node_multiple_delete_confirm_submit($form, &$form_state) {
|
||||
if ($form_state['values']['confirm']) {
|
||||
node_delete_multiple(array_keys($form_state['values']['nodes']));
|
||||
cache_clear_all();
|
||||
$count = count($form_state['values']['nodes']);
|
||||
watchdog('content', 'Deleted @count posts.', array('@count' => $count));
|
||||
drupal_set_message(format_plural($count, 'Deleted 1 post.', 'Deleted @count posts.'));
|
||||
|
||||
Reference in New Issue
Block a user