You are here

function icon_provider_defaults in Icon API 8

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

Default properties for a provider definition.

Parameters

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

string $name: The machine name of the provider.

Return value

array|false An associative array containing information about a provider

1 call to icon_provider_defaults()
icon_providers in ./icon.module
Returns information about all icon providers.

File

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

Code

function icon_provider_defaults(&$provider = array(), $name = '') {
  $provider += array(
    'default bundle' => array(),
    'name' => $name,
    'title' => $name,
    'url' => '',
  );
  return $provider;
}