function spaces_announce_handler_argument_gid in Spaces 5
Same name and namespace in other branches
- 5.2 spaces_announce/spaces_announce.module \spaces_announce_handler_argument_gid()
Argument handler for primary group arg
1 string reference to 'spaces_announce_handler_argument_gid'
- spaces_announce_views_arguments in spaces_announce/
spaces_announce.module - Implementation of hook_views_arguments()
File
- spaces_announce/
spaces_announce.module, line 334
Code
function spaces_announce_handler_argument_gid($op, &$query, $argtype, $arg = '') {
switch ($op) {
case 'summary':
// TODO implement a summary view
return;
case 'link':
// TODO implement link op for summary view
break;
case 'sort':
// TODO implement sort op for summary view
break;
case 'filter':
$query
->ensure_table('spaces_announce');
$query
->add_where('spaces_announce.gid = %d', $arg);
break;
case 'title':
return db_result(db_query_range('SELECT title FROM {node} WHERE nid = %d', $query, 0, 1));
}
}