contrib modules security updates
This commit is contained in:
@@ -7,9 +7,9 @@ files[] = xmlsitemap_node.module
|
||||
files[] = xmlsitemap_node.install
|
||||
files[] = xmlsitemap_node.test
|
||||
|
||||
; Information added by drupal.org packaging script on 2012-12-08
|
||||
version = "7.x-2.0-rc2+0-dev"
|
||||
; Information added by Drupal.org packaging script on 2016-05-25
|
||||
version = "7.x-2.3"
|
||||
core = "7.x"
|
||||
project = "xmlsitemap"
|
||||
datestamp = "1354931808"
|
||||
datestamp = "1464191061"
|
||||
|
||||
|
@@ -40,7 +40,7 @@ function xmlsitemap_node_xmlsitemap_process_node_links(array $nids) {
|
||||
$nodes = node_load_multiple($nids);
|
||||
foreach ($nodes as $node) {
|
||||
$link = xmlsitemap_node_create_link($node);
|
||||
xmlsitemap_link_save($link);
|
||||
xmlsitemap_link_save($link, array($link['type'] => $node));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ function xmlsitemap_node_node_insert(stdClass $node) {
|
||||
*/
|
||||
function xmlsitemap_node_node_update(stdClass $node) {
|
||||
$link = xmlsitemap_node_create_link($node);
|
||||
xmlsitemap_link_save($link);
|
||||
xmlsitemap_link_save($link, array($link['type'] => $node));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -146,7 +146,7 @@ function xmlsitemap_node_form_node_form_alter(array &$form, array &$form_state)
|
||||
* An array of UNIX timestamp integers.
|
||||
*/
|
||||
function xmlsitemap_node_get_timestamps(stdClass $node) {
|
||||
static $timestamps = array();
|
||||
$timestamps = &drupal_static(__FUNCTION__, array());
|
||||
|
||||
if (!isset($timestamps[$node->nid])) {
|
||||
$timestamps[$node->nid] = db_query("SELECT nr.timestamp FROM {node_revision} nr WHERE nr.nid = :nid", array(':nid' => $node->nid))->fetchCol();
|
||||
@@ -331,3 +331,16 @@ function xmlsitemap_node_view_access($node, $account = NULL) {
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_features_pipe_COMPONENT_alter().
|
||||
*
|
||||
* Add variables to exported node types.
|
||||
*/
|
||||
function xmlsitemap_node_features_pipe_node_alter(&$pipe, $data, $export) {
|
||||
if (!empty($data)) {
|
||||
foreach ($data as $node_type) {
|
||||
$pipe['variable'][] = "xmlsitemap_settings_node_{$node_type}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user