In order to take advantage of the changes in Drupal 7, Views has gone through several API changes. Here's what you should know.
name = Example module description = "Gives an example of a module." core = 7.x files[] = example.module files[] = example.install ; Views handlers files[] = includes/views/handlers/example_handler_argument_string.inc
'#process' => array('views_process_dependeny')with
'#process' => array('ctools_dependent_process'),
$this->query->add_where($this->options['group'], "$this->table_alias.$this->real_field " . $this->operator . " '%s'", $this->value);
has to be converted to
$this->query->add_where($this->options['group'], "$this->table_alias.$this->real_field", $this->value, $this->operator);
If your field is a complex where condition:
$this->query->add_where($this->options['group'], "$upper($field) NOT LIKE $upper('%%%s')", $this->value);
has to be converted to
$placeholder = $this->placeholder();
$this->query->add_where_expression($this->options['group'], "$field LIKE $placeholder", array($placeholder => '%' . db_like($this->value)));
placeholder() generates a automatic unique placeholder for you.
add_where with operator 'formula' can be converted to add_where_expression.
add_having with operator 'formula' can be converted to add_having_expression.