I am using the following preprocess in my template.php
function paddle_admin_preprocess_menu_block_wrapper(&$variables) {
if ($variables['delta'] === 'management_level_2') {
$variables['classes_array'][] = 'max-width';
}
}
It works as intended, it adds a class when the delta equals this string..
I am trying to modify another other entry of the classes_array array in order to make the classname more semantic. How would I go for that? (so replace an entry instead of add)
ps: I figured it can be as easy as:
$variables['classes_array'][1] = $variables['delta'];
but I am wondering whether the array indexes can change (from the ones I see with devel themer)