function ctools_term_ctools_argument_placeholder in Chaos Tool Suite (ctools) 7
Same name and namespace in other branches
- 6 plugins/arguments/term.inc \ctools_term_ctools_argument_placeholder()
Form fragment to get an argument to convert a placeholder for preview.
1 string reference to 'ctools_term_ctools_argument_placeholder'
File
- plugins/
arguments/ term.inc, line 150 - Plugin to provide an argument handler for a Taxonomy term.
Code
function ctools_term_ctools_argument_placeholder($conf) {
switch ($conf['input_form']) {
case 'tid':
default:
return array(
'#type' => 'textfield',
'#description' => t('Enter a taxonomy term ID.'),
);
case 'term':
return array(
'#type' => 'textfield',
'#description' => t('Enter a taxonomy term name.'),
);
}
}