function _makemeeting_options in Make Meeting Scheduler 7.2
Helper function for selecting choices
Parameters
bool $three_choices If should be returning three choices:
Return value
array An array of options for radios
2 calls to _makemeeting_options()
- theme_makemeeting_answers in ./
makemeeting.theme.inc - Function used to render answers' table
- _makemeeting_answer_element in ./
makemeeting.form.inc - Helper function to provide an answer form element
File
- ./
makemeeting.module, line 185 - Hooks and field implementations
Code
function _makemeeting_options($three_choices = FALSE) {
$options = array(
MAKEMEETING_NO => t('No'),
MAKEMEETING_MAYBE => t('Maybe'),
MAKEMEETING_YES => t('Yes'),
);
if (!$three_choices) {
unset($options[MAKEMEETING_MAYBE]);
}
return $options;
}