summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEarl Miles2009-04-20 22:21:30 (GMT)
committer Earl Miles2009-04-20 22:21:30 (GMT)
commitdd15e1cf699939320c7a62c32e740668ee055132 (patch)
tree9c17fe6c642ea3948b02aba4c4cf291f3892e594
parent729039aff413ebe221a17347eb92119c5cb7c53b (diff)
More dead code removal.
-rw-r--r--includes/callbacks.inc29
1 files changed, 0 insertions, 29 deletions
diff --git a/includes/callbacks.inc b/includes/callbacks.inc
index d451cf8..513744a 100644
--- a/includes/callbacks.inc
+++ b/includes/callbacks.inc
@@ -6,35 +6,6 @@
*/
/**
- * Helper function for autocompletion of node titles.
- */
-function panels_node_autocomplete($string) {
- if ($string != '') { // if there are node_types passed, we'll use those in a MySQL IN query.
- $preg_matches = array();
- $match = preg_match('/\[nid: (\d+)\]/', $string, $preg_matches);
- if (!$match) {
- $match = preg_match('/^nid: (\d+)/', $string, $preg_matches);
- }
- if ($match) {
- $arg = $preg_matches[1];
- $where = "n.nid = %d";
- }
- else {
- $arg = $string;
- $where = "LOWER(title) LIKE LOWER('%%%s%%')";
- }
- $result = db_query_range(db_rewrite_sql("SELECT n.nid, n. title, u.name FROM {node} n INNER JOIN {users} u ON u.uid = n.uid WHERE $where"), $arg, 0, 10);
-
- $matches = array();
- while ($node = db_fetch_object($result)) {
- $name = empty($node->name) ? variable_get('anonymous', t('Anonymous')) : check_plain($node->name);
- $matches[$node->title . " [nid: $node->nid]"] = '<span class="autocomplete_title">' . check_plain($node->title) . '</span> <span class="autocomplete_user">(' . t('by @user', array('@user' => $name)) . ')</span>';
- }
- drupal_json($matches);
- }
-}
-
-/**
* A central administrative page for Panels.
*/
function panels_admin_page() {