drupal core updated to 7.28
This commit is contained in:
@@ -1179,10 +1179,8 @@ function node_save($node) {
|
||||
module_invoke_all('node_' . $op, $node);
|
||||
module_invoke_all('entity_' . $op, $node, 'node');
|
||||
|
||||
// Update the node access table for this node. There's no need to delete
|
||||
// existing records if the node is new.
|
||||
$delete = $op == 'update';
|
||||
node_access_acquire_grants($node, $delete);
|
||||
// Update the node access table for this node.
|
||||
node_access_acquire_grants($node);
|
||||
|
||||
// Clear internal properties.
|
||||
unset($node->is_new);
|
||||
@@ -1685,7 +1683,7 @@ function node_search_admin() {
|
||||
);
|
||||
$form['content_ranking']['#theme'] = 'node_search_admin';
|
||||
$form['content_ranking']['info'] = array(
|
||||
'#value' => '<em>' . t('The following numbers control which properties the content search should favor when ordering the results. Higher numbers mean more influence, zero means the property is ignored. Changing these numbers does not require the search index to be rebuilt. Changes take effect immediately.') . '</em>'
|
||||
'#markup' => '<p><em>' . t('Influence is a numeric multiplier used in ordering search results. A higher number means the corresponding factor has more influence on search results; zero means the factor is ignored. Changing these numbers does not require the search index to be rebuilt. Changes take effect immediately.') . '</em></p>'
|
||||
);
|
||||
|
||||
// Note: reversed to reflect that higher number = higher ranking.
|
||||
@@ -1872,7 +1870,7 @@ function theme_node_search_admin($variables) {
|
||||
|
||||
$output = drupal_render($form['info']);
|
||||
|
||||
$header = array(t('Factor'), t('Weight'));
|
||||
$header = array(t('Factor'), t('Influence'));
|
||||
foreach (element_children($form['factors']) as $key) {
|
||||
$row = array();
|
||||
$row[] = $form['factors'][$key]['#title'];
|
||||
@@ -2224,8 +2222,8 @@ function node_last_changed($nid) {
|
||||
/**
|
||||
* Returns a list of all the existing revision numbers.
|
||||
*
|
||||
* @param Drupal\node\Node $node
|
||||
* The node entity.
|
||||
* @param $node
|
||||
* The node object.
|
||||
*
|
||||
* @return
|
||||
* An associative array keyed by node revision number.
|
||||
@@ -3292,6 +3290,17 @@ function node_query_entity_field_access_alter(QueryAlterableInterface $query) {
|
||||
/**
|
||||
* Helper for node access functions.
|
||||
*
|
||||
* Queries tagged with 'node_access' that are not against the {node} table
|
||||
* should add the base table as metadata. For example:
|
||||
* @code
|
||||
* $query
|
||||
* ->addTag('node_access')
|
||||
* ->addMetaData('base_table', 'taxonomy_index');
|
||||
* @endcode
|
||||
* If the query is not against the {node} table, an attempt is made to guess
|
||||
* the table, but is not recommended to rely on this as it is deprecated and not
|
||||
* allowed in Drupal 8. It is always safer to provide the table.
|
||||
*
|
||||
* @param $query
|
||||
* The query to add conditions to.
|
||||
* @param $type
|
||||
|
||||
Reference in New Issue
Block a user