function views_plugin_argument_validate_taxonomy_term_machine_name::options_form in Taxonomy Machine Name 7
Provide the default form for setting options.
Overrides views_plugin_argument_validate_taxonomy_term::options_form
File
- views/
modules/ taxonomy/ views_plugin_argument_validate_taxonomy_term_machine_name.inc, line 13 - Contains the 'taxonomy term' overridden argument validator plugin.
Class
- views_plugin_argument_validate_taxonomy_term_machine_name
- Validate whether an argument is an acceptable node.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
// Add new validator.
$form['type']['#options']['machine_name'] = t('Term machine name');
// When using machine names, it doesn't make sense to transform to spaces.
// Transform to underscores instead.
$form['transform']['#title'] = t('Transform dashes in URL to underscores in term machine name filter values');
}