I couldn't find a link for adding a custom block(admin/structure/block/add). In Drupal 6 it would appear at the top of the blocks page, where did it go? It should be there shouldn't?

CommentFileSizeAuthor
#2 630384-restore-add-block-link.patch903 bytesbrianV

Comments

johnalbin’s picture

Title: Troubles finding link to add a custom block » link to add a custom block is missing
Component: menu system » block.module
Priority: Normal » Critical

I was just noticing this today too. :-\

brianV’s picture

Status: Active » Needs review
StatusFileSize
new903 bytes

Someone accidentally changed 'MENU_LOCAL_TASK' to 'MENU_LOCAL_ACTION'.

Patch changes this back, should restore the 'Add block' link as it was before.

dries’s picture

Haven't really looked at the surrounding code yet, but it should actually be a MENU_LOCAL_ACTION. We don't want to create a tab, we want to create one of those new '+ Add something' links.

brianV’s picture

Interesting.... MENU_LOCAL_ACTION doesn't exist in the D7 documentation at http://api.drupal.org/api/function/hook_menu/7 so I wasn't aware it existed.

I'll try to figure out how it should be used in this case.

bleen’s picture

Status: Needs review » Closed (duplicate)

seems this is a symptom of #556872: Action links do not work on all levels (example: 'add block' action link does not appear)

once that is solved, this issue goes away, so marking as duplicate