Skip to content

Instantly share code, notes, and snippets.

@valkum
Created September 23, 2013 23:46
Show Gist options
  • Save valkum/6678548 to your computer and use it in GitHub Desktop.
Save valkum/6678548 to your computer and use it in GitHub Desktop.
array (
'#theme' => 'links__node',
'#pre_render' =>
array (
0 => 'drupal_pre_render_links',
),
'#attributes' =>
array (
'class' =>
array (
0 => 'links',
1 => 'list-inline',
2 => 'test',
),
),
'node' =>
array (
'#theme' => 'links__node__node',
'#links' =>
array (
'node-readmore' =>
array (
'title' => 'Read more<span class="element-invisible"> about Tester1</span>',
'href' => 'node/4',
'html' => true,
'attributes' =>
array (
'rel' => 'tag',
'title' => 'Tester1',
),
),
),
'#attributes' =>
array (
'class' =>
array (
0 => 'links',
1 => 'list-inline',
),
),
),
'comment' =>
array (
'#theme' => 'links__node__comment',
'#links' =>
array (
'comment-add' =>
array (
'title' => 'Add new comment',
'href' => 'comment/reply/4',
'attributes' =>
array (
'title' => 'Add a new comment to this page.',
),
'fragment' => 'comment-form',
),
),
'#attributes' =>
array (
'class' =>
array (
0 => 'links',
1 => 'list-inline',
),
),
),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment