diff options
-rw-r--r-- | modules/aggregator/aggregator.module | 6 | ||||
-rw-r--r-- | modules/block/block.module | 2 | ||||
-rw-r--r-- | modules/contact/contact.module | 2 | ||||
-rw-r--r-- | modules/filter/filter.module | 2 | ||||
-rw-r--r-- | modules/forum/forum.module | 4 | ||||
-rw-r--r-- | modules/image/image.module | 2 | ||||
-rw-r--r-- | modules/locale/locale.module | 2 | ||||
-rw-r--r-- | modules/node/node.admin.inc | 11 | ||||
-rw-r--r-- | modules/node/node.module | 2 | ||||
-rw-r--r-- | modules/path/path.module | 2 | ||||
-rw-r--r-- | modules/taxonomy/taxonomy.admin.inc | 4 | ||||
-rw-r--r-- | modules/taxonomy/taxonomy.module | 6 | ||||
-rw-r--r-- | modules/taxonomy/taxonomy.test | 4 | ||||
-rw-r--r-- | modules/user/user.module | 2 | ||||
-rw-r--r-- | themes/seven/style.css | 12 |
15 files changed, 30 insertions, 33 deletions
diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module index dd87879a7..a95c64bed 100644 --- a/modules/aggregator/aggregator.module +++ b/modules/aggregator/aggregator.module @@ -97,7 +97,7 @@ function aggregator_menu() { 'page callback' => 'drupal_get_form', 'page arguments' => array('aggregator_form_feed'), 'access arguments' => array('administer news feeds'), - 'type' => MENU_LOCAL_TASK, + 'type' => MENU_LOCAL_ACTION, 'parent' => 'admin/settings/aggregator', ); $items['admin/settings/aggregator/add/category'] = array( @@ -105,7 +105,7 @@ function aggregator_menu() { 'page callback' => 'drupal_get_form', 'page arguments' => array('aggregator_form_category'), 'access arguments' => array('administer news feeds'), - 'type' => MENU_LOCAL_TASK, + 'type' => MENU_LOCAL_ACTION, 'parent' => 'admin/settings/aggregator', ); $items['admin/settings/aggregator/add/opml'] = array( @@ -113,7 +113,7 @@ function aggregator_menu() { 'page callback' => 'drupal_get_form', 'page arguments' => array('aggregator_form_opml'), 'access arguments' => array('administer news feeds'), - 'type' => MENU_LOCAL_TASK, + 'type' => MENU_LOCAL_ACTION, 'parent' => 'admin/settings/aggregator', ); $items['admin/settings/aggregator/remove/%aggregator_feed'] = array( diff --git a/modules/block/block.module b/modules/block/block.module index e0c34d2ec..051a259b2 100644 --- a/modules/block/block.module +++ b/modules/block/block.module @@ -156,7 +156,7 @@ function block_menu() { 'page callback' => 'drupal_get_form', 'page arguments' => array('block_add_block_form'), 'access arguments' => array('administer blocks'), - 'type' => MENU_LOCAL_TASK, + 'type' => MENU_LOCAL_ACTION, ); $default = variable_get('theme_default', 'garland'); foreach (list_themes() as $key => $theme) { diff --git a/modules/contact/contact.module b/modules/contact/contact.module index 7ee6936d0..0274940fa 100644 --- a/modules/contact/contact.module +++ b/modules/contact/contact.module @@ -68,7 +68,7 @@ function contact_menu() { 'page callback' => 'drupal_get_form', 'page arguments' => array('contact_admin_edit', 3), 'access arguments' => array('administer site-wide contact form'), - 'type' => MENU_LOCAL_TASK, + 'type' => MENU_LOCAL_ACTION, 'weight' => 1, ); $items['admin/structure/contact/edit/%contact'] = array( diff --git a/modules/filter/filter.module b/modules/filter/filter.module index f347fcc32..2dcbbd8af 100644 --- a/modules/filter/filter.module +++ b/modules/filter/filter.module @@ -85,7 +85,7 @@ function filter_menu() { 'title' => 'Add text format', 'page callback' => 'filter_admin_format_page', 'access arguments' => array('administer filters'), - 'type' => MENU_LOCAL_TASK, + 'type' => MENU_LOCAL_ACTION, 'weight' => 1, ); $items['admin/settings/formats/delete'] = array( diff --git a/modules/forum/forum.module b/modules/forum/forum.module index c6816ac80..c9cf6e339 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -105,7 +105,7 @@ function forum_menu() { 'page callback' => 'forum_form_main', 'page arguments' => array('container'), 'access arguments' => array('administer forums'), - 'type' => MENU_LOCAL_TASK, + 'type' => MENU_LOCAL_ACTION, 'parent' => 'admin/structure/forum', ); $items['admin/structure/forum/add/forum'] = array( @@ -113,7 +113,7 @@ function forum_menu() { 'page callback' => 'forum_form_main', 'page arguments' => array('forum'), 'access arguments' => array('administer forums'), - 'type' => MENU_LOCAL_TASK, + 'type' => MENU_LOCAL_ACTION, 'parent' => 'admin/structure/forum', ); $items['admin/structure/forum/settings'] = array( diff --git a/modules/image/image.module b/modules/image/image.module index 42689cd02..d971b9896 100644 --- a/modules/image/image.module +++ b/modules/image/image.module @@ -66,7 +66,7 @@ function image_menu() { 'page callback' => 'drupal_get_form', 'page arguments' => array('image_style_add_form'), 'access arguments' => array('administer image styles'), - 'type' => MENU_LOCAL_TASK, + 'type' => MENU_LOCAL_ACTION, 'weight' => 2, ); $items['admin/config/media/image-styles/edit/%image_style'] = array( diff --git a/modules/locale/locale.module b/modules/locale/locale.module index 77c85ea8f..63eecc0eb 100644 --- a/modules/locale/locale.module +++ b/modules/locale/locale.module @@ -87,7 +87,7 @@ function locale_menu() { 'page callback' => 'locale_languages_add_screen', // two forms concatenated 'access arguments' => array('administer languages'), 'weight' => 5, - 'type' => MENU_LOCAL_TASK, + 'type' => MENU_LOCAL_ACTION, ); $items['admin/config/regional/language/configure'] = array( 'title' => 'Configure', 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'; diff --git a/modules/node/node.module b/modules/node/node.module index 5d5c0c12c..bbf0413ec 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1729,7 +1729,7 @@ function node_menu() { 'page callback' => 'drupal_get_form', 'page arguments' => array('node_type_form'), 'access arguments' => array('administer content types'), - 'type' => MENU_LOCAL_TASK, + 'type' => MENU_LOCAL_ACTION, ); $items['node'] = array( 'title' => 'Content', diff --git a/modules/path/path.module b/modules/path/path.module index 76a9332c4..d65dd5ec9 100644 --- a/modules/path/path.module +++ b/modules/path/path.module @@ -61,7 +61,7 @@ function path_menu() { 'title' => 'Add alias', 'page callback' => 'path_admin_edit', 'access arguments' => array('administer url aliases'), - 'type' => MENU_LOCAL_TASK, + 'type' => MENU_LOCAL_ACTION, ); return $items; diff --git a/modules/taxonomy/taxonomy.admin.inc b/modules/taxonomy/taxonomy.admin.inc index dacdb4c06..18f6534fc 100644 --- a/modules/taxonomy/taxonomy.admin.inc +++ b/modules/taxonomy/taxonomy.admin.inc @@ -28,7 +28,7 @@ function taxonomy_overview_vocabularies() { $form[$vocabulary->vid]['weight'] = array('#type' => 'weight', '#delta' => 10, '#default_value' => $vocabulary->weight); $form[$vocabulary->vid]['edit'] = array('#markup' => l(t('edit vocabulary'), "admin/structure/taxonomy/$vocabulary->vid")); $form[$vocabulary->vid]['list'] = array('#markup' => l(t('list terms'), "admin/structure/taxonomy/$vocabulary->vid/list")); - $form[$vocabulary->vid]['add'] = array('#markup' => l(t('add terms'), "admin/structure/taxonomy/$vocabulary->vid/add")); + $form[$vocabulary->vid]['add'] = array('#markup' => l(t('add terms'), "admin/structure/taxonomy/$vocabulary->vid/list/add")); } // Only make this form include a submit button and weight if more than one @@ -445,7 +445,7 @@ function taxonomy_overview_terms(&$form_state, $vocabulary) { $form['#page_entries'] = $page_entries; $form['#back_peddle'] = $back_peddle; $form['#forward_peddle'] = $forward_peddle; - $form['#empty_text'] = t('No terms available. <a href="@link">Add term</a>.', array('@link' => url('admin/structure/taxonomy/' . $vocabulary->vid . '/add'))); + $form['#empty_text'] = t('No terms available. <a href="@link">Add term</a>.', array('@link' => url('admin/structure/taxonomy/' . $vocabulary->vid . '/list/add'))); if (!$vocabulary->tags && $vocabulary->hierarchy < 2 && count($tree) > 1) { $form['submit'] = array( diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 254013eb8..f2cfa376e 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -209,7 +209,7 @@ function taxonomy_menu() { 'page callback' => 'drupal_get_form', 'page arguments' => array('taxonomy_form_vocabulary'), 'access arguments' => array('administer taxonomy'), - 'type' => MENU_LOCAL_TASK, + 'type' => MENU_LOCAL_ACTION, ); $items['taxonomy/term/%taxonomy_term'] = array( @@ -283,12 +283,12 @@ function taxonomy_menu() { 'weight' => -10, ); - $items['admin/structure/taxonomy/%taxonomy_vocabulary/add'] = array( + $items['admin/structure/taxonomy/%taxonomy_vocabulary/list/add'] = array( 'title' => 'Add term', 'page callback' => 'drupal_get_form', 'page arguments' => array('taxonomy_form_term', 3), 'access arguments' => array('administer taxonomy'), - 'type' => MENU_LOCAL_TASK, + 'type' => MENU_LOCAL_ACTION, ); return $items; diff --git a/modules/taxonomy/taxonomy.test b/modules/taxonomy/taxonomy.test index 9ca9592d6..66e4b8852 100644 --- a/modules/taxonomy/taxonomy.test +++ b/modules/taxonomy/taxonomy.test @@ -518,7 +518,7 @@ class TaxonomyTermTestCase extends TaxonomyWebTestCase { $edit['parent[]'] = 0; // Create the term to edit. - $this->drupalPost('admin/structure/taxonomy/' . $this->vocabulary->vid . '/add', $edit, t('Save')); + $this->drupalPost('admin/structure/taxonomy/' . $this->vocabulary->vid . '/list/add', $edit, t('Save')); $term = reset(taxonomy_get_term_by_name($edit['name'])); $this->assertNotNull($term, t('Term found in database')); @@ -685,7 +685,7 @@ class TaxonomyHooksTestCase extends TaxonomyWebTestCase { 'name' => $this->randomName(), 'antonym' => 'Long', ); - $this->drupalPost('admin/structure/taxonomy/' . $vocabulary->vid . '/add', $edit, t('Save')); + $this->drupalPost('admin/structure/taxonomy/' . $vocabulary->vid . '/list/add', $edit, t('Save')); $term = reset(taxonomy_get_term_by_name($edit['name'])); $this->assertEqual($term->antonym, $edit['antonym'], t('Antonym was loaded into the term object')); diff --git a/modules/user/user.module b/modules/user/user.module index 7a4d01d8d..a35154dc2 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -1364,7 +1364,7 @@ function user_menu() { 'title' => 'Add user', 'page arguments' => array('create'), 'access arguments' => array('administer users'), - 'type' => MENU_LOCAL_TASK, + 'type' => MENU_LOCAL_ACTION, ); // Administration pages. diff --git a/themes/seven/style.css b/themes/seven/style.css index 314064231..9e307e94a 100644 --- a/themes/seven/style.css +++ b/themes/seven/style.css @@ -618,6 +618,12 @@ ul.action-links li { margin: 0 1em 0 0; } +ul.action-links a { + padding-left: 15px; + background: transparent url(images/add.png) no-repeat 0 center; + line-height: 30px; +} + /* Exceptions */ #diff-inline-form select, #block-system-main div.filter-options select { @@ -696,12 +702,6 @@ div.admin-options div.form-item { border: 0; } -a.node-admin-add-content { - padding-left: 15px; - background: url(images/add.png) no-repeat 0 center; - line-height: 30px; -} - /* Update status */ .versions table.version { border: none; |