You are here

function override_css_properties_list in Override css 7

5 calls to override_css_properties_list()
override_css_export_ui_form in plugins/export_ui/override_css.inc
Override css settings form.
override_css_generate_css in ./override_css.module
Generate css
override_css_selector_value in ./override_css.admin.inc
Set values of css properties
override_css_selector_value_submit in ./override_css.admin.inc
Submit selector group form
override_css_selector_value_validate in ./override_css.admin.inc
Validate selector group form

File

./override_css.module, line 202

Code

function override_css_properties_list($optionlist = FALSE) {
  $properties = array(
    'background_image' => array(
      'name' => 'background-image',
      'title' => 'Achtergrondafbeelding',
      'type' => 'image',
      'unit' => '',
    ),
    'background_color' => array(
      'name' => 'background-color',
      'title' => 'Achtergrondkleur',
      'type' => 'background-color',
      'unit' => '',
    ),
    'font_size' => array(
      'name' => 'font-size',
      'title' => 'Lettergrootte',
      'type' => 'size',
      'unit' => 'px',
    ),
    'color' => array(
      'name' => 'color',
      'title' => 'Letterkleur',
      'type' => 'color',
    ),
    'padding' => array(
      'name' => 'padding',
      'title' => 'Padding',
      'type' => 'size',
      'unit' => 'px',
    ),
    'margin' => array(
      'name' => 'margin',
      'title' => 'Marge',
      'type' => 'size',
      'unit' => 'px',
    ),
    'margin_top' => array(
      'name' => 'margin-top',
      'title' => 'Ruimte bovenkant',
      'type' => 'size',
      'unit' => 'px',
    ),
    'margin_bottom' => array(
      'name' => 'margin-bottom',
      'title' => 'Ruimte onderkant',
      'type' => 'size',
      'unit' => 'px',
    ),
    'border' => array(
      'name' => 'border',
      'title' => 'Rand',
      'type' => 'border',
      'unit' => '',
    ),
    'border_radius' => array(
      'name' => 'border-radius',
      'title' => 'Afronding van de hoeken',
      'type' => 'radius',
      'unit' => 'px',
    ),
    'box_shadow' => array(
      'name' => 'box-shadow',
      'title' => 'Schaduw',
      'type' => 'shadow',
      'unit' => '',
    ),
    'font_family' => array(
      'name' => 'font-family',
      'title' => 'Lettertype',
      'type' => 'font',
      'unit' => '',
    ),
  );
  ksort($properties);
  if ($optionlist) {
    $values = array_keys($properties);
    return array_combine($values, $values);
  }
  else {
    return $properties;
  }
}