1 common.inc backdrop_css_defaults($data = NULL)

Constructs an array of the defaults that are used for styles items.

@since 1.19.0 Function added.

Parameters

$data: (optional) The default data parameter for the style item array.

Return value

array: An array of key and values.

See also

backdrop_get_css()

backdrop_add_css()

File

core/includes/common.inc, line 3357
Common functions that many Backdrop modules will need to reference.

Code

function backdrop_css_defaults($data = NULL) {
  return array(
    'type' => 'file',
    'group' => CSS_DEFAULT,
    'weight' => 0,
    'every_page' => FALSE,
    'media' => 'all',
    'preprocess' => TRUE,
    'data' => $data,
    'browsers' => array(),
    'attributes' => array(),
  );
}