function _oa_archive_alter_archived_exposed_filter in Open Atrium Archive 7.2
Helper function to alter the 'Archive' exposed filter to be user friendly.
2 calls to _oa_archive_alter_archived_exposed_filter()
File
- ./
oa_archive.module, line 103
Code
function _oa_archive_alter_archived_exposed_filter(&$element) {
// Replace the options with easier to understand ones.
$element['#options'] = array(
'0' => t('No'),
'All' => t('Yes'),
'1' => t('Only archived content'),
);
// Default to 'No' when there is no previous configuration.
if (empty($element['#default_value'])) {
$element['#default_value'] = 0;
}
}