source: extensions/square_thumbnails/main.inc.php @ 5943

Last change on this file since 5943 was 5943, checked in by patdenice, 10 years ago

Add plugins files

File size: 592 bytes
Line 
1<?php
2/*
3Plugin Name: Square Thumbnails
4Version: auto
5Description: Add an option to make square thumbnails
6Plugin URI: auto
7Author: P@t
8Author URI: http://www.gauchon.com
9*/
10
11if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
12
13define('SQUARE_THUMB_PATH' , PHPWG_PLUGINS_PATH . basename(dirname(__FILE__)) . '/');
14
15function change_admin_thumb_link($menu)
16{
17  global $template;
18
19  $template->assign('U_THUMBNAILS',
20    get_admin_plugin_menu_link(SQUARE_THUMB_PATH.'thumbnail.php')
21  );
22
23  return $menu;
24}
25
26add_event_handler('get_admin_plugin_menu_links', 'change_admin_thumb_link');
27
28
29?>
Note: See TracBrowser for help on using the repository browser.