[PLUGINS] ~maj globale
[lhc/web/www.git] / www / plugins / seo-dev / base / seo_tables.php
1 <?php
2 /**
3 * BouncingOrange SPIP SEO plugin
4 *
5 * @category SEO
6 * @package SPIP_SEO
7 * @author Pierre ROUSSET (p.rousset@gmail.com)
8 * @copyright Copyright (c) 2009 BouncingOrange (http://www.bouncingorange.com)
9 * @license http://opensource.org/licenses/gpl-2.0.php General Public License (GPL 2.0)
10 */
11
12 if (!defined('_ECRIRE_INC_VERSION')) {
13 return;
14 }
15
16 function seo_declarer_tables_interfaces($interface) {
17 $interface['table_des_tables']['seo'] = 'seo';
18
19 return $interface;
20 }
21
22 function seo_declarer_tables_principales($tables_principales) {
23 //-- Table SEO -----------------------------------------------------
24 $seo = array(
25 'id_objet' => 'int(11) NOT NULL',
26 'objet' => 'varchar(10) NOT NULL',
27 'meta_name' => 'varchar(20) NOT NULL',
28 'meta_content' => 'text NOT NULL'
29 );
30
31 $seo_cles = array(
32 'PRIMARY KEY' => 'id_objet, objet, meta_name'
33 );
34
35 $tables_principales['spip_seo'] = array(
36 'field' => &$seo,
37 'key' => &$seo_cles
38 );
39
40 return $tables_principales;
41 }