public function name_handler_filter_name_fulltext::operators in Name Field 7
This kind of construct makes it relatively easy for a child class to add or remove functionality by overriding this function and adding/removing items from this array.
2 calls to name_handler_filter_name_fulltext::operators()
- name_handler_filter_name_fulltext::operator_options in includes/
name_handler_filter_name_fulltext.inc - Build strings from the operators() for 'select' options.
- name_handler_filter_name_fulltext::query in includes/
name_handler_filter_name_fulltext.inc - Add this filter to the query.
File
- includes/
name_handler_filter_name_fulltext.inc, line 25
Class
- name_handler_filter_name_fulltext
- Field handler to provide simple renderer that allows linking to a entity.
Code
public function operators() {
return array(
'contains' => array(
'title' => t('Contains'),
'short' => t('contains'),
'method' => 'op_contains',
'values' => 1,
),
'word' => array(
'title' => t('Contains any word'),
'short' => t('has word'),
'method' => 'op_word',
'values' => 1,
),
'allwords' => array(
'title' => t('Contains all words'),
'short' => t('has all'),
'method' => 'op_word',
'values' => 1,
),
);
}