t('Types of cats'), 'callback' => 'mymodule_list_option_cats', ); $info['dogs'] = array( 'label' => t('Types of dogs'), 'callback' => 'mymodule_list_option_dogs', ); return $info; } /** * Alter the metadata about available predefined list options. * * @param array $info * The associative array of predefined list option definitions from * hook_list_option_info(). * * @see hook_list_option_info() */ function hook_list_option_info_alter(array &$info) { // Change the callback for cat types to kittens. $info['cats']['label'] = t('Types of kittens'); $info['cats']['callback'] = 'mymodule_list_option_kittens'; // Remove the dog option list because dogs are dumb. unset($info['dogs']); } /** * @} End of "addtogroup hooks". */