function freepager_settings in Free pager 7.2
Helper function to keep track of settings used by Free pager in Views.
Return value
type
5 calls to freepager_settings()
- freepager_plugin_display_pagerblock::options_form in ./
freepager_plugin_display_pagerblock.inc - Provide the default form for setting options.
- freepager_plugin_display_pagerblock::options_submit in ./
freepager_plugin_display_pagerblock.inc - Perform any necessary changes to the form values prior to storage. There is no need for this function to actually store the data.
- freepager_plugin_display_pagerblock::options_summary in ./
freepager_plugin_display_pagerblock.inc - Provide the summary for page options in the views UI.
- freepager_plugin_display_pagerblock::option_definition in ./
freepager_plugin_display_pagerblock.inc - Information about options for all kinds of purposes will be held here.
- freepager_preprocess_views_freepager in ./
freepager.module - Implements hook_preprocess_HOOK().
File
- ./
freepager.module, line 43 - Some basic function for Free pager. Mostly implementations of Views hooks.
Code
function freepager_settings() {
return array(
'path' => array(
'label' => t('Field containing path'),
'description' => t("Select the field containing the paths managed by this pager. Field could contain something on the form 'node/[nid]'."),
),
'previous' => array(
'label' => t("Field for 'previous'"),
'description' => t('Select the field containing data used for linking to previous item.'),
),
'current' => array(
'label' => t("Field for 'current'"),
'description' => t('Select the field containing data used for showing the currently viewed item.'),
),
'next' => array(
'label' => t("Field for 'next'"),
'description' => t('Select the field containing data used for linking to next item.'),
),
'loop' => array(
'label' => t("Loop the pager"),
'description' => t('Check this box to have the last item followed by the first one, and vice versa.'),
),
);
}