From e6eb489918ed6e217038faf4e45ed510c64596fd Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sun, 23 Aug 2009 01:05:12 +0000 Subject: #542658 follow-up by sun: Move action 'tabs' out of local tasks and into local actions. --- modules/node/node.admin.inc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'modules/node/node.admin.inc') diff --git a/modules/node/node.admin.inc b/modules/node/node.admin.inc index 274a7d3a7..1960ccbb4 100644 --- a/modules/node/node.admin.inc +++ b/modules/node/node.admin.inc @@ -371,14 +371,11 @@ function node_admin_content($form_state) { if (isset($form_state['values']['operation']) && $form_state['values']['operation'] == 'delete') { return node_multiple_delete_confirm($form_state, array_filter($form_state['values']['nodes'])); } - $form = array(); // Show the 'add new content' link. - if (_node_add_access()) { - $form['add_content'] = array( - '#type' => 'markup', - '#markup' => l(t('Add new content'), 'node/add', array('attributes' => array('class' => array('node-admin-add-content')))), - ); - } + $form['add_content'] = array( + '#access' => _node_add_access(), + '#markup' => theme('links', array(array('title' => t('Add new content'), 'href' => 'node/add')), array('class' => array('action-links'))), + ); $form[] = node_filter_form(); $form['#theme'] = 'node_filter_form'; -- cgit v1.2.3