widget_icons module hooks - Hooks created by widget_icons module
- These hooks allow built-in widgets to customize their display icons
hook_widget_icons_widget_admin
Parameters:
None
Returns:
array(
'module_name' => array(
'variable' => string - name of the variable to store the image in
'widget_name' => string - name of the widget (per hook_html_panel_make_widgets) this icon goes to
'weight' => int - weight of the fieldset to generate in a form (per forms api)
'selector' => string - CSS selector to use the icon as the background for
)
)
Description:
This hook allows modules to describe a custom icon to the widget_icons module. When the widget_icons admin page is loaded, image upload fields will be added for each instance of the hook. Modules may also embed their own auto-formatted widget upload field by invoking widget_icons_form_alter_add_field($form, $form_state, 'module_name')