Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render array for action links #293

Open
soniktrooth opened this issue Sep 28, 2016 · 1 comment
Open

Render array for action links #293

soniktrooth opened this issue Sep 28, 2016 · 1 comment
Assignees
Milestone

Comments

@soniktrooth
Copy link
Contributor

soniktrooth commented Sep 28, 2016

menu_local_actions is being rendered with a theme function. A render array makes it adjustable by subthemes.

Out with :

    $variables['tabs']['#primary'][]['#markup'] = theme('menu_local_actions', array('menu_actions' => $variables['action_links'], 'attributes' => $dropdown_attributes));

In with :

    $variables['tabs']['#primary'][] = array(
      '#theme' => 'menu_local_actions',
      '#menu_actions' => $variables['action_links'],
      '#attributes' => $dropdown_attributes,
    );
@soniktrooth soniktrooth self-assigned this Sep 28, 2016
@soniktrooth soniktrooth added this to the 7.x-3.3 milestone Sep 28, 2016
soniktrooth pushed a commit that referenced this issue Sep 28, 2016
@soniktrooth
Copy link
Contributor Author

Also, just for reference this was needed in DENT-338

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant