function ctools_export_ui::list_sort_options
Provide a list of sort options.
Override this if you wish to provide more or change how these work. The actual handling of the sorting will happen in build_row().
1 call to ctools_export_ui::list_sort_options()
- ctools_export_ui::list_form in plugins/
export_ui/ ctools_export_ui.class.php - Create the filter/sort form at the top of a list of exports.
2 methods override ctools_export_ui::list_sort_options()
- ctools_custom_content_ui::list_sort_options in ctools_custom_content/
plugins/ export_ui/ ctools_custom_content_ui.class.php - Provide a list of sort options.
- stylizer_ui::list_sort_options in stylizer/
plugins/ export_ui/ stylizer_ui.class.php - Provide a list of sort options.
File
-
plugins/
export_ui/ ctools_export_ui.class.php, line 441
Class
- ctools_export_ui
- Base class for export UI.
Code
public function list_sort_options() {
if (!empty($this->plugin['export']['admin_title'])) {
$options = array(
'disabled' => t('Enabled, title'),
$this->plugin['export']['admin_title'] => t('Title'),
);
}
else {
$options = array(
'disabled' => t('Enabled, name'),
);
}
$options += array(
'name' => t('Name'),
'storage' => t('Storage'),
);
return $options;
}