You are here

function _cookie_content_blocker_element_defaults in Cookie Content Blocker 7

Defines defaults used by the Cookie content blocker wrapper.

Return value

array Defaults used for the Cookie content blocker wrapper.

1 call to _cookie_content_blocker_element_defaults()
cookie_content_blocker_element_pre_render in ./cookie_content_blocker.module
Pre render elements to provide our theme wrapper and defaults.

File

./cookie_content_blocker.module, line 212
Contains the main module code for Cookie content blocker.

Code

function _cookie_content_blocker_element_defaults() {
  $button_text = variable_get('cookie_content_blocker_button_text');
  return array(
    'blocked_message' => _cookie_content_blocker_blocked_message(),
    'show_button' => variable_get('cookie_content_blocker_show_button', TRUE),
    'button_text' => empty($button_text) ? t('Show content') : $button_text,
    'enable_click' => variable_get('cookie_content_blocker_enable_click_consent_change', TRUE),
    'show_placeholder' => TRUE,
    'preview' => array(),
  );
}