Instead of hardcoding the handlers for Views, we should do something more intelligent. A few possibilities would be to allow client modules to specify the views handler in hook_schema, or to implement a hook themselves. Or, perhaps we just want to infer a few types based on the type of index column.
Comments
Comment #1
sidharth_k commentedThe following has been accomplished:
You would do this in the following fashion. Please see in particular 'smoker' to override a field handler (views_handler_field_boolean) and 'nid' (we could have named it anything actually but called it 'nid') for creating a relationship to the node table.
Comment #2
sidharth_k commentedCompleted.
Commits:
http://drupalcode.org/sandbox/sidharth_k/1358954.git/commit/71d53a5
http://drupalcode.org/sandbox/sidharth_k/1358954.git/commit/5e5cc87
To see this in operation simply see the sobjstore_example. Make sure you look at the views example at path
sobjstore_example/views_example.You will see the relationship happening in column 'Favorite Page' and use of the boolean field handler in column 'Smoker'