All pastes #471178 Raw Edit

Gurpartap Singh

public php v1 · immutable
·published 2007-05-04 19:43 UTC
rendered paste body
  $items['admin/build/path/search'] = array(    'title' => 'Search alias',    'description' => 'Search alias by keyword.',    'page callback' => 'path_admin_search',    'access arguments' => array('administer url aliases'),    'type' => MENU_LOCAL_TASK,  );// ###### Add the above to path_menu menu items ######/** * Menu callback; presents a form to search URL aliases. */function path_admin_search() {  $output = drupal_get_form('path_admin_search_form');  //$output .= path_admin_search_data();  return $output;  //return path_admin_search_form();}/** * Return a form to search URL aliases. */function path_admin_search_form() {  $form['path'] = array(    '#value' => 'w'  );  return $form;}