I can add accordion blocks all day long but once they are added and in the list, I cannot modify them. The paths are "admin/structure/accordion_block/manage/[#]/edit" and "admin/structure/accordion_block/manage/[#]/delete" but do nothing once the link is clicked. I did notice that on line 84 of accordion_blocks.module, the file may be incorrectly referenced where I think "accordion_block.admin.inc" should be "accordion_blocks.admin.inc" and I tried changing it but still no joy. Sure wish I was better at PHP!

Comments

O.Shaya’s picture

I have the same problem, in addition to not being able to add an accordion block with my user, only the admin, even thought I have the permissions.

Nick Fedchik’s picture

+1
Looking for bugfix

Also I see a warining in /admin/config/user-interface/accordion-blocks
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'accordion_blocks_settings_form' not found or invalid function name in function drupal_retrieve_form()
and nothing more

pflame’s picture

Status: Active » Needs review

Fixed this bug and is available in the 7.x-3.x-dev release.
Will create new version 7.x-3.1 once the tags are updated.

Nick Fedchik’s picture

I update to 3.1 version. Good, can edit and delete Accordion blocks.

Nick Fedchik’s picture

One to whishlist - if I delete a block from AB set, then only last block can be deleted. Not so usable if I need to remove block from the middle of blocks set. At least reordering could be helpful both to delete last (deep down) block and reorder blocks.

pflame’s picture

Nick,

Please create a new issue for this request.

Nick Fedchik’s picture

anup.singh’s picture

/* solution for Cannot edit or delete*/

replace line 66,73,78,84 in "accordion_blocks.module"
**********************************************************
$items['admin/structure/accordion_block/manage/%accordion_block'] = array(
$items['admin/structure/accordion_block/manage/%accordion_block/edit'] = array(
$items['admin/structure/accordion_block/manage/%accordion_block/delete'] = array(
'file' => 'accordion_block.admin.inc',
************************************************************
with
**********************************************************
$items['admin/structure/accordion_block/manage/%accordion_blocks'] = array(
$items['admin/structure/accordion_block/manage/%accordion_blocks/edit'] = array(
$items['admin/structure/accordion_block/manage/%accordion_blocks/delete'] = array(
'file' => 'accordion_blocks.admin.inc',
**********************************************************************
in line 66,73,78 %accordion_block were in correct it is not able to call accordion_blocks_load()
in line 84 file specified to include was in correct

if you have any problem reply me

pflame’s picture

Status: Needs review » Closed (fixed)

Hi anup,

Thanks for your solution. This issue is already fixed and available in the 7.x-3.1 version.

anup.singh’s picture

hi pflame,

i am using the same version but only include file name is changed but %accordion_blocks for calling load() are still "%accordion_block" incorrect. please have a check....

pflame’s picture

Thanks for checking latest version. I did not change the menu paths but I changed function name. to just load single accordion block using the function name accordion_blocks_load is meaning less. So I changed the function name to accordion_block_load. The functionality is working fine.