You are here

function _mlpanels_settings in Multilingual Panels 7

Helper function to return configuration settings.

5 calls to _mlpanels_settings()
mlpanels_admin_form in ./mlpanels.admin.inc
Admin form buider.
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_panels_renderer_editor::init in ./mlpanels_panels_renderer_editor.class.php
Receive and store the display object to be rendered.
_mlpanels_pane_skip in ./mlpanels.module
Helper fnction to check if we should translate this pane.

File

./mlpanels.module, line 152
Multilingual panels.

Code

function _mlpanels_settings($key = NULL) {
  $default = array(
    'cke_fix' => TRUE,
    'keep_window' => TRUE,
    'show_messages' => TRUE,
    'show_types' => FALSE,
    'exclude_cct' => '',
  );
  $settings = variable_get(MLPANELS_VARIABLE_SETTINGS, $default);
  return !empty($key) ? $settings[$key] : $settings;
}