Révision 136a805a
Ajouté par Assos Assos il y a plus de 7 ans
drupal7/sites/all/modules/panels/panels_ipe/panels_ipe.module | ||
---|---|---|
221 | 221 |
*/ |
222 | 222 |
function panels_ipe_toolbar_add_button($cache_key, $id, $button) { |
223 | 223 |
$buttons = &drupal_static('panels_ipe_toolbar_buttons', array()); |
224 |
drupal_alter('panels_ipe_button', $button, $id, $cache_key); |
|
224 | 225 |
$buttons[$cache_key][$id] = $button; |
225 | 226 |
} |
226 | 227 |
|
... | ... | |
246 | 247 |
|
247 | 248 |
function theme_panels_ipe_toolbar($vars) { |
248 | 249 |
$buttons = $vars['buttons']; |
250 |
ctools_include('cleanstring'); |
|
249 | 251 |
|
250 | 252 |
$output = "<div id='panels-ipe-control-container' class='clearfix'>"; |
251 | 253 |
foreach ($buttons as $key => $ipe_buttons) { |
254 |
$key = ctools_cleanstring($key); |
|
252 | 255 |
$output .= "<div id='panels-ipe-control-$key' class='panels-ipe-control'>"; |
253 | 256 |
|
254 | 257 |
// Controls in this container will appear when the IPE is not on. |
Formats disponibles : Unified diff
Weekly update of contrib modules