There is no way to change the machine name of a current search block (at least that I can see).

Which generally isn't an issue, but when you clone a block you get a machine name like clone_of_standard, and if for some reason you then want to clone that one you get clone_of_clone_of_standard and so on.

So at least in this case you should be able to change the machine name.

CommentFileSizeAuthor
#3 clone-machine-name-1514170-3.patch837 bytescpliakas

Comments

rooby’s picture

Also, there is edit machine name functionality there when you create a new block, however it is not available any time after that.

cpliakas’s picture

Title: There is no way to change the machine name of a current search block » There is no way to change the machine name when cloning a current search block
Issue tags: +low hanging fruit

This bug is confirmed. The machine name generally shouldn't be editable after it is created, which is inline with how other modules leveraging CTools exportables work. However, the logic that prevents modifying the machine name after a configuration has been created is also applied when the configuration is being cloned. Changing the title so we can focus on making the machine name configurable when cloning a configuration.

The good news is that this seems to be an easy fix. In the current_search_settings_form() function, we can simply leverage the $form_state['form type'] variable to test whether the form is being cloned and modify the $form['info']['name']['#disabled'] property accordingly. Adding to the "low hanging fruit" tag, as I would love to see a patch for this.

Thanks for reporting,
Chris

cpliakas’s picture

StatusFileSize
new837 bytes

The attached patch seems to resolve the issue.

cpliakas’s picture

Status: Active » Fixed

Minor fix, so it has been committed to 7.x versions of Facet API.

Automatically closed -- issue fixed for 2 weeks with no activity.