You are here

function icon_bundle_defaults in Icon API 8

Same name and namespace in other branches
  1. 7 icon.module \icon_bundle_defaults()

Default properties for a bundle definition.

Parameters

array $bundle: An associative array of bundle information, passed by reference.

string $name: The machine name of the bundle.

3 calls to icon_bundle_defaults()
form_process_icon_selector in includes/element.inc
Processes an icon select list form element.
icon_bundles in ./icon.module
Returns information about all icon bundles.
icon_provider_import_form_validate in includes/import.inc
Validate callback for 'icon_provider_import_form'.

File

./icon.module, line 316
icon.module Provides icon integration with menu items.

Code

function icon_bundle_defaults(&$bundle = array(), $name = '') {
  $bundle += array(
    'icons' => array(),
    'name' => $name,
    'provider' => '',
    'settings' => array(),
    'status' => 1,
    'title' => $name,
    'version' => '',
    '#attached' => array(),
  );
  return $bundle;
}