Commit 176968cb authored by alexpott's avatar alexpott

Issue #2002466 by druderman, hugo.lallo: Rename Views method...

Issue #2002466 by druderman, hugo.lallo: Rename Views method document_self_tokens() to documentSelfTokens().
parent bf36b09e
......@@ -801,7 +801,7 @@ function render_item($count, $item) {
return render($item['rendered']);
}
function document_self_tokens(&$tokens) {
protected function documentSelfTokens(&$tokens) {
$field = $this->field_info;
foreach ($field['columns'] as $id => $column) {
$tokens['[' . $this->options['id'] . '-' . $id . ']'] = t('Raw @column', array('@column' => $id));
......
......@@ -134,7 +134,7 @@ function render_item($count, $item) {
return $item['name'];
}
function document_self_tokens(&$tokens) {
protected function documentSelfTokens(&$tokens) {
$tokens['[' . $this->options['id'] . '-tid' . ']'] = t('The taxonomy term ID for the term.');
$tokens['[' . $this->options['id'] . '-name' . ']'] = t('The taxonomy term name for the term.');
$tokens['[' . $this->options['id'] . '-vocabulary-vid' . ']'] = t('The machine name for the vocabulary the term belongs to.');
......
......@@ -75,7 +75,7 @@ function render_item($count, $item) {
}
/*
function document_self_tokens(&$tokens) {
protected function documentSelfTokens(&$tokens) {
$tokens['[' . $this->options['id'] . '-role' . ']'] = t('The name of the role.');
$tokens['[' . $this->options['id'] . '-rid' . ']'] = t('The role ID of the role.');
}
......
......@@ -71,7 +71,7 @@ function render_item($count, $item) {
return $item['role'];
}
function document_self_tokens(&$tokens) {
protected function documentSelfTokens(&$tokens) {
$tokens['[' . $this->options['id'] . '-role' . ']'] = t('The name of the role.');
$tokens['[' . $this->options['id'] . '-rid' . ']'] = t('The role machine-name of the role.');
}
......
......@@ -856,7 +856,7 @@ public function buildOptionsForm(&$form, &$form_state) {
$options[t('Arguments')]['!' . $count] = t('@argument input', array('@argument' => $handler->adminLabel()));
}
$this->document_self_tokens($options[t('Fields')]);
$this->documentSelfTokens($options[t('Fields')]);
// Default text.
$output = t('<p>You must add some additional fields to this display before using this field. These fields may be marked as <em>Exclude from display</em> if you prefer. Note that due to rendering order, you cannot use fields that come after this field; if you need a field not listed here, rearrange your fields.</p>');
......@@ -1579,7 +1579,7 @@ protected function addSelfTokens(&$tokens, $item) { }
*
* @see addSelfTokens()
*/
function document_self_tokens(&$tokens) { }
protected function documentSelfTokens(&$tokens) { }
/**
* Call out to the theme() function, which probably just calls render() but
......
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