function facetapi_facetapi_widget_info in Facet API 6
Implementation of hook_facetapi_widget_info().
File
- ./
facetapi.module, line 1566 - An abstracted facet API that can be used by various search backens.
Code
function facetapi_facetapi_widget_info() {
$widgets = array();
$widgets['facetapi_links'] = array(
'title' => t('Links'),
'callback' => 'facetapi_widget_links',
'widget requirements' => array(
'list',
),
'file' => 'facetapi.widget.inc',
'weight' => -10,
);
$widgets['facetapi_link_checkboxes'] = array(
'title' => t('Links with checkboxes'),
'callback' => 'facetapi_widget_link_checkboxes',
'widget requirements' => array(
'list',
),
'file' => 'facetapi.widget.inc',
'weight' => -9,
);
$widgets['facetapi_checkboxes'] = array(
'title' => t('Checkboxes'),
'callback' => 'facetapi_widget_checkboxes',
'widget requirements' => array(
'form',
'has default values',
'flat',
),
'file' => 'facetapi.widget.inc',
'weight' => -10,
);
$widgets['facetapi_radios'] = array(
'title' => t('Radios'),
'callback' => 'facetapi_widget_radios',
'widget requirements' => array(
'form',
'has default values',
'flat',
),
'file' => 'facetapi.widget.inc',
'weight' => -9,
);
$widgets['facetapi_select'] = array(
'title' => t('Select list'),
'callback' => 'facetapi_widget_select',
'widget requirements' => array(
'form',
'has default values',
),
'file' => 'facetapi.widget.inc',
'weight' => -8,
);
$widgets['facetapi_multiselect'] = array(
'title' => t('Multiple value select list'),
'callback' => 'facetapi_widget_multiselect',
'widget requirements' => array(
'form',
'has default values',
),
'file' => 'facetapi.widget.inc',
'weight' => -7,
);
$widgets['facetapi_textfield'] = array(
'title' => t('Text field'),
'callback' => 'facetapi_widget_textfield',
'widget requirements' => array(
'form',
),
'file' => 'facetapi.widget.inc',
'weight' => -6,
);
return $widgets;
}