You are here

function mmenu_get_all_classes in Mobile sliding menu 7.2

Same name and namespace in other branches
  1. 7 mmenu.module \mmenu_get_all_classes()

Gets the classes values of the combination of the classes and effects.

Parameters

array $mmenu: An associative array of the mmenu.

Return value

string A classes values of the combination of the classes and effects.

1 call to mmenu_get_all_classes()
mmenu_page_build in ./mmenu.module
Implements hook_page_build().

File

./mmenu.module, line 1157
Primarily Drupal hooks and global API functions to manipulate mmenus.

Code

function mmenu_get_all_classes(array $mmenu) {
  $classes = array();
  $classes[] = $mmenu['options']['classes'];
  if (isset($mmenu['options']['effects'])) {
    foreach ($mmenu['options']['effects'] as $k => $v) {
      $classes[] = $k;
    }
  }
  return implode(' ', $classes);
}