function asset_widget_theme in Asset 7
Implements hook_theme().
File
- modules/
asset_widget/ asset_widget.module, line 802 - Code for the Asset widget module.
Code
function asset_widget_theme() {
$base = array(
'path' => ASSET_WIDGET_MODULE_PATH . '/theme',
);
return array(
'asset_widget_wrapper' => array(
'template' => 'asset-widget-wrapper',
'file' => 'theme.inc',
) + $base,
// Global theme item for all custom asset types.
'asset__widget_search' => array(
'render element' => 'element',
'template' => 'asset--widget-search',
'file' => 'theme.inc',
) + $base,
'asset_wrapper__widget_search' => array(
'render element' => 'element',
'template' => 'asset-wrapper--widget-search',
) + $base,
// Misc.
'asset_widget_edit_buttons' => array(
'variables' => array(
'asset' => NULL,
),
'render element' => 'element',
'template' => 'asset-widget-edit-buttons',
'file' => 'theme.inc',
) + $base,
'asset_widget_view_mode_switch_block' => array(
'variables' => array(
'asset' => NULL,
),
'render element' => 'element',
'file' => 'theme.inc',
) + $base,
'asset_widget_search_filters_block' => array(
'variables' => array(
'search_params' => array(),
'results' => 0,
),
'template' => 'asset-widget-search-filters-block',
'file' => 'theme.inc',
) + $base,
'asset_widget_asset_form_page' => array(
'render element' => 'page',
'template' => 'asset-widget-asset-form-page',
'file' => 'theme.inc',
) + $base,
);
}