first import from 7.x-1.1

Signed-off-by: bachy <git@g-u-i.net>
This commit is contained in:
bachy
2012-10-17 15:19:21 +02:00
commit 04d628c609
19 changed files with 4653 additions and 0 deletions
@@ -0,0 +1,26 @@
<?php
/**
* @file
* Provide list fid argument handler.
*/
/**
* Argument handler to accept a list id.
*/
class flag_lists_handler_argument_fid extends views_handler_argument_numeric {
/**
* Override the behavior of title(). Get the title of the list.
*/
function title_query() {
$titles = array();
$result = db_select('flag_lists_flags', 'fl')
->fields('fl', array('title'))
->condition('fl.fid', $this->value, 'IN')
->execute();
foreach ($result as $term) {
$titles[] = check_plain($term->title);
}
return $titles;
}
}