diff --git a/plugins/linkit_views/linkit_views.info b/plugins/linkit_views/linkit_views.info new file mode 100644 index 0000000000000000000000000000000000000000..ed69693ec3d3c5c8e81fecf1846295de73e0b008 --- /dev/null +++ b/plugins/linkit_views/linkit_views.info @@ -0,0 +1,13 @@ +; $Id$ +name = Linkit Views +description = Extend Linkit with views links +core = 6.x +package = Linkit +dependencies[] = "linkit" +dependencies[] = "views" +; Information added by drupal.org packaging script on 2010-11-26 +version = "6.x-1.x-dev" +core = "6.x" +project = "linkit" +datestamp = "1290730629" + diff --git a/plugins/linkit_views/linkit_views.module b/plugins/linkit_views/linkit_views.module new file mode 100644 index 0000000000000000000000000000000000000000..31b393ddae912255915dc85ff296808ed769cb33 --- /dev/null +++ b/plugins/linkit_views/linkit_views.module @@ -0,0 +1,51 @@ +display_options); + db_query("INSERT INTO {linkit_tmp_view_table} (title, path) VALUES ('%s', '%s')", $node->name, $optinos['path']); + } + + $result = db_query_range("SELECT * FROM {linkit_tmp_view_table} WHERE LOWER(path) LIKE LOWER('%%%s%%')", $string, 0, 10); + while ($node = db_fetch_object($result)) { + $matches['view'][] = array( + 'title' => $node->path, + 'path' => base_path() . $node->path, + 'information' => array( + 'type' => 'Views', + ), + ); + } + + return $matches; +} + +/** + * Implementation of hook_linkit_info_plugins(). + * + * This is used by linkit_permissions + */ +function linkit_views_linkit_info_plugins() { + $return['linkit_views'] = array( + 'type' => 'views', + ); + return $return; +} \ No newline at end of file