You are here

function _mlpanels_pane_skip in Multilingual Panels 7

Helper fnction to check if we should translate this pane.

3 calls to _mlpanels_pane_skip()
mlpanels_panels_renderer_editor::ajax_add_pane in ./mlpanels_panels_renderer_editor.class.php
AJAX entry point to add a new pane.
mlpanels_panels_renderer_editor::ajax_edit_pane in ./mlpanels_panels_renderer_editor.class.php
AJAX entry point to edit a pane.
mlpanels_renderer_standard::render_pane in plugins/display_renderers/mlpanels_renderer_standard.class.php
Render pane replacement.

File

./mlpanels.module, line 169
Multilingual panels.

Code

function _mlpanels_pane_skip($type, $subtype) {
  $exclude = _mlpanels_settings('exclude_cct');
  if (empty($exclude)) {
    return FALSE;
  }
  foreach (explode(PHP_EOL, $exclude) as $match) {

    // Full match.
    if ($type . '::' . $subtype == trim($match)) {
      return TRUE;
    }

    // Type only match.
    if ($type . '::*' == trim($match)) {
      return TRUE;
    }
  }
  return FALSE;
}