You are here

function override_css_selector_load_all in Override css 7

Load all selector groups.

2 calls to override_css_selector_load_all()
override_css_generate_css in ./override_css.module
Generate css
override_css_settings_table in override_css_settings/override_css_settings.module
Page with settings table.

File

./override_css.module, line 161

Code

function override_css_selector_load_all($reset = FALSE, $filter = FALSE) {
  $selector_groups = array();
  ctools_include('export');
  foreach (ctools_export_crud_load_all('override_css', $reset) as $name => $selector_group) {
    $selector_groups[$name] = (array) $selector_group;

    //remove disabled items
    if ($filter && isset($selector_group->disabled) && $selector_group->disabled) {
      unset($selector_groups[$name]);
    }
  }
  if (count($selector_groups)) {
    $groups = array_keys($selector_groups);
    foreach ($groups as $name) {
      $selector_groups[$name]['properties_values'] = override_css_get_properties_values($name);
    }
  }
  return $selector_groups;
}