In the install file there is an update hook that has a typo on $definition here foreach ($node_info['bundles'] as $type => $defintiion).

This is the full hook_update_N().

/**
 * Create buttons for all node types.
 */
function command_buttons_update_7002() {
  $node_info = entity_get_info('node');
  foreach ($node_info['bundles'] as $type => $defintiion) {
    command_buttons_create_node_button($type, $definition['label']);
  }
}

This effects the command button title when the command button is created as $label will be NULL in command_buttons_create_node_button($type, $label).

I will create a patch that just adds the same update hook again with the correct spelling.

CommentFileSizeAuthor
#1 command_buttons-typo-2447497-1.patch580 bytesscottalan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

scottalan’s picture

Here's a patch.

scottalan’s picture

Issue summary: View changes
SocialNicheGuru’s picture

Status: Active » Needs review
SocialNicheGuru’s picture

Status: Needs review » Reviewed & tested by the community

this is an issue and the patch fixes it.

SocialNicheGuru’s picture

Status: Reviewed & tested by the community » Needs work

While the patch does work, shouldn't the original issue misspelling in 7002 be fixed also?
The update number needs to be increased

SocialNicheGuru’s picture

This patch totally worked for me. I had 54 pages of 'Add files' as command buttons.

Now I do not.

  • mpotter committed 48767c2 on 7.x-1.x authored by scottalan
    Issue #2447497 by scottalan: Typo on variable in install file
    
mpotter’s picture

Status: Needs work » Fixed

Committed to 48767c2.

I also updated the hook number and commented out 7002 because of typo (but left in for code history)

Status: Fixed » Closed (fixed)

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