You are here

function acquia_lift_generate_ignore_selector in Acquia Lift Connector 7

Same name and namespace in other branches
  1. 7.2 acquia_lift.ui.inc \acquia_lift_generate_ignore_selector()

Generates a selector for all of the regions of this page to ignore when selecting elements from the DOM.

1 call to acquia_lift_generate_ignore_selector()
acquia_lift_build_page in ./acquia_lift.ui.inc
Attaches the front-end controls to the page.

File

./acquia_lift.ui.inc, line 134
acquia_lift.ui.inc Provides functions needed for the front-end UI.

Code

function acquia_lift_generate_ignore_selector() {
  global $theme;
  $classes = array();
  $all_regions = system_region_list($theme, REGIONS_ALL);
  $visible_regions = system_region_list($theme, REGIONS_VISIBLE);
  $invisible_regions = array_diff($all_regions, $visible_regions);
  foreach ($invisible_regions as $region_name => $region_label) {
    $classes[] = drupal_region_class($region_name);
  }
  return $classes;
}