in short I want the same functionality as the taxonomy module where you can have an URL like "localhost/drupal/admin/structure/taxonomy/occupational_fields/edit" where occupational_fields was the aliased part.
The menu entry in taxonomy for the page callback looks like this:
$items['admin/structure/taxonomy/%taxonomy_vocabulary_machine_name/edit'] = array(
'title' => 'Edit',
'page callback' => 'drupal_get_form',
'page arguments' => array('taxonomy_form_vocabulary', 3),
'access arguments' => array('administer taxonomy'),
'type' => MENU_LOCAL_TASK,
'weight' => -10,
'file' => 'taxonomy.admin.inc',
);
The function declaration looks like this:
function taxonomy_form_vocabulary($form, &$form_state, $edit = array())
Now my implementation looks like this:
$items['admin/config/mapper/%tid/edit'] = array(
'title' => 'Mapper edit mapping',
'description' => 'Add or edit a mapping',
'page callback' => 'drupal_get_form',
'page arguments' => array('mapper_form_mappings', 3),
'access arguments' => array('administer site configuration'),
'type' => MENU_LOCAL_TASK,
'file' => 'mapper.admin.inc',
);
And respectively:
function mapper_form_mappings($form, &$form_state, $edit = array())
But when an URL like "localhost/drupal/admin/config/mapper/11/edit" is opened the function above is not called.
I tried googling a good URL alias tutorial for module programming, but couldn't find one. Maybe I searched for the wrong thing?
edit: I can imagine that I need some type of handler, but I couldn't find one in the taxonomy files and the tutorials didn't mention them either.