Révision 64156087
Ajouté par Assos Assos il y a plus de 7 ans
drupal7/sites/all/modules/panels/i18n_panels/i18n_panels.module | ||
---|---|---|
206 | 206 |
* |
207 | 207 |
* This function must not rely on the passed $renderer parameter. The parameter |
208 | 208 |
* could be empty because this function is reused in i18n_ctools_render_alter(). |
209 |
* |
|
209 | 210 |
* @todo Check if a drupal_alter() in panels_display::get_title() is applicable. |
210 | 211 |
* |
211 | 212 |
* @see i18n_ctools_render_alter() |
... | ... | |
234 | 235 |
* |
235 | 236 |
* Under some circumstances the title of the panel page is set before |
236 | 237 |
* hook_panels_pre_render() is fired. Such cases can be handled with this hook. |
238 |
* |
|
237 | 239 |
* @todo Check if a drupal_alter() in panels_display::get_title() is applicable. |
238 | 240 |
*/ |
239 | 241 |
function i18n_ctools_render_alter(&$info, $page, $context) { |
... | ... | |
250 | 252 |
* Implements hook_ctools_plugin_post_alter(). |
251 | 253 |
* |
252 | 254 |
* Register some translatable configuration settings for plugins. |
253 |
* |
|
254 | 255 |
*/ |
255 | 256 |
function i18n_panels_ctools_plugin_post_alter(&$plugin, $plugin_type_info) { |
256 | 257 |
if ($plugin_type_info['type'] == 'content_types') { |
... | ... | |
322 | 323 |
if (empty($pane->uuid)) { |
323 | 324 |
// Fetch exported uuid and validate it. |
324 | 325 |
$uuid = str_replace('new-', '', $pane->pid); |
325 |
if (!panels_uuid_is_valid($uuid)) {
|
|
326 |
if (!ctools_uuid_is_valid($uuid)) {
|
|
326 | 327 |
drupal_set_message(t('The pane %pane has no uuid, please resave or re-export it.', array('%pane' => $pane->pid)), 'warning'); |
327 | 328 |
continue; |
328 | 329 |
} |
... | ... | |
366 | 367 |
* |
367 | 368 |
* @todo I bet there are better ways to solve this mess. |
368 | 369 |
* |
369 |
* @param boolean $reset
|
|
370 |
* @param bool $reset |
|
370 | 371 |
* Reset the static cache. |
371 | 372 |
* |
372 | 373 |
* @return array |
Formats disponibles : Unified diff
Weekly update of contrib modules