Usability: remove word 'settings' in blocks administration

profix898 - June 21, 2007 - 15:08
Project:Drupal
Version:6.x-dev
Component:block.module
Category:task
Priority:normal
Assigned:Unassigned
Status:closed
Description

We are currently listing all themes in the blocks administration and for every theme we have a tab named 'themeX settings'. If someone has many themes installed/enabled the tabs are quickly getting confusing. I suggest to remove the word 'settings' from the title. It makes the list much clearer without loosing context. Attached is a 'micro' patch which removes the word 'settings' (and adds a missing '$form_state').

AttachmentSize
block_settings_title.patch1003 bytes

#1

moshe weitzman - June 22, 2007 - 03:40

+1 to removing that word 'settings'.

but your change to block_admin_display() does not look right. it is called from block_menu() with: page arguments' => array('block_admin_display', $key),

that means that $key will be first arg. also, you can simplify $title in that menu declaration and eliminate 'title arguments'

#2

profix898 - June 22, 2007 - 09:06

OK. Simplified $title (and eliminated 'title arguments').

As for the change to block_admin_display(). I was not sure there either. $key should be the first arguments, yes, but actually it is not. $form_state is passed as first arguments and $key comes second. Without the 'fix' the themes in blocks administration dont switch, what means you cant configure blocks per theme (and it generates a warning). Might be a bug in the FAPI3 section though ... I removed that piece from the patch for now. Thanks.

AttachmentSize
block_settings_title2.patch 833 bytes

#3

dmitrig01 - June 23, 2007 - 15:27
Status:needs review» needs work

-1. Setting the title to the theme name is really confusing

#4

profix898 - June 28, 2007 - 14:26

@dmitrig01: Because you think it's confusing, it doesnt mean that the 'code needs work'. Its just your opinion. Or is there stg wrong with the patch?

#5

profix898 - June 28, 2007 - 14:26
Status:needs work» needs review

@dmitrig01: Because you think it's confusing, it doesnt mean that the 'code needs work'. Its just your opinion. Or is there stg wrong with the patch?

#6

profix898 - July 16, 2007 - 10:54
Category:feature request» task

Still applies (with 4 lines offset). Anyone?

#7

Dries - July 16, 2007 - 12:52
Status:needs review» fixed

Committed to CVS HEAD. Thanks.

#8

Anonymous - July 30, 2007 - 13:27
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.