function svg_embed_menu in SVG Embed 7
Implements hook_menu().
File
- ./
svg_embed.module, line 46 - SVG Embed. Provides a filter for text formats that includes and on the fly translates SVG files into text fields.
Code
function svg_embed_menu() {
$items['admin/config/regional/translate/svgextract'] = array(
'title' => 'Embedded SVG',
'description' => 'Extracts strings from embedded SVG files into po files for translation and re-imports them into the proper text group.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'svg_embed_manage_po_files',
),
'access arguments' => array(
'translate interface',
),
'type' => MENU_LOCAL_TASK,
'weight' => 99,
);
$items['svg-embed/%/%file/fallback.png'] = array(
'title' => 'Fallback PNG',
'page callback' => 'svg_embed_fallback_png',
'page arguments' => array(
1,
2,
),
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
return $items;
}