Commit ef3335c6 authored by alexpott's avatar alexpott

Issue #2010672 followup by jenlampton: Rename 'type' variable of theme_mark() to 'status'.

parent b1c684b8
...@@ -2223,7 +2223,7 @@ function template_preprocess_tablesort_indicator(&$variables) { ...@@ -2223,7 +2223,7 @@ function template_preprocess_tablesort_indicator(&$variables) {
* MARK_UPDATED, MARK_READ. * MARK_UPDATED, MARK_READ.
*/ */
function theme_mark($variables) { function theme_mark($variables) {
$type = $variables['mark_type']; $type = $variables['status'];
global $user; global $user;
if ($user->uid) { if ($user->uid) {
if ($type == MARK_NEW) { if ($type == MARK_NEW) {
...@@ -3113,7 +3113,7 @@ function drupal_common_theme() { ...@@ -3113,7 +3113,7 @@ function drupal_common_theme() {
'template' => 'tablesort-indicator', 'template' => 'tablesort-indicator',
), ),
'mark' => array( 'mark' => array(
'variables' => array('mark_type' => MARK_NEW), 'variables' => array('status' => MARK_NEW),
), ),
'item_list' => array( 'item_list' => array(
'variables' => array('items' => array(), 'title' => '', 'list_type' => 'ul', 'attributes' => array()), 'variables' => array('items' => array(), 'title' => '', 'list_type' => 'ul', 'attributes' => array()),
......
...@@ -92,7 +92,7 @@ function render($values) { ...@@ -92,7 +92,7 @@ function render($values) {
} }
$build = array( $build = array(
'#theme' => 'mark', '#theme' => 'mark',
'#mark_type' => $mark, '#status' => $mark,
); );
return $this->render_link(drupal_render($build), $values); return $this->render_link(drupal_render($build), $values);
} }
......
...@@ -262,7 +262,7 @@ function node_admin_nodes() { ...@@ -262,7 +262,7 @@ function node_admin_nodes() {
$l_options = $node->langcode != Language::LANGCODE_NOT_SPECIFIED && isset($languages[$node->langcode]) ? array('language' => $languages[$node->langcode]) : array(); $l_options = $node->langcode != Language::LANGCODE_NOT_SPECIFIED && isset($languages[$node->langcode]) ? array('language' => $languages[$node->langcode]) : array();
$mark = array( $mark = array(
'#theme' => 'mark', '#theme' => 'mark',
'#mark_type' => node_mark($node->nid, $node->changed), '#status' => node_mark($node->nid, $node->changed),
); );
$form['nodes'][$node->nid]['title'] = array( $form['nodes'][$node->nid]['title'] = array(
'#type' => 'link', '#type' => 'link',
......
...@@ -1571,7 +1571,7 @@ function theme_node_recent_content($variables) { ...@@ -1571,7 +1571,7 @@ function theme_node_recent_content($variables) {
$output .= l($node->label(), 'node/' . $node->id()); $output .= l($node->label(), 'node/' . $node->id());
$mark = array( $mark = array(
'#theme' => 'mark', '#theme' => 'mark',
'#mark_type' => node_mark($node->id(), $node->getChangedTime()), '#status' => node_mark($node->id(), $node->getChangedTime()),
); );
$output .= drupal_render($mark); $output .= drupal_render($mark);
$output .= '</div><div class="node-author">'; $output .= '</div><div class="node-author">';
......
...@@ -76,7 +76,7 @@ function tracker_page($account = NULL, $set_title = FALSE) { ...@@ -76,7 +76,7 @@ function tracker_page($account = NULL, $set_title = FALSE) {
$mark_build = array( $mark_build = array(
'#theme' => 'mark', '#theme' => 'mark',
'#mark_type' => node_mark($node->nid, $node->changed), '#status' => node_mark($node->nid, $node->changed),
); );
$row = array( $row = array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment