function mmenu_get_all_classes in Mobile sliding menu 7
Same name and namespace in other branches
- 7.2 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_add_js in ./
mmenu.module - Generates the mmenu js handler scripts and adds to Drupal.
File
- ./
mmenu.module, line 991 - Primarily Drupal hooks and global API functions to manipulate mmenus.
Code
function mmenu_get_all_classes($mmenu = array()) {
$classes = array();
$classes[] = $mmenu['options']['classes'];
if (isset($mmenu['options']['effects'])) {
foreach ($mmenu['options']['effects'] as $k => $v) {
$classes[] = $k;
}
}
return implode(' ', $classes);
}