Fork me on GitHub

Rapport de message :*
 

Re: xoops config array

Titre du sujet : Re: xoops config array
par JJDai sur 25/11/2011 16:49:20

Bonjour
Quelque chose comme ça:

$i++;
  
$modversion['config'][$i]['name'] = 'extcal_view';
  
$modversion['config'][$i]['title'] = '_MI_CAB_AGENDA_DEFAUT';
  
$modversion['config'][$i]['description'] = '_MI_CAB_AGENDA_DEFAUT_DSC';
  
$modversion['config'][$i]['formtype'] = 'select';
  
$modversion['config'][$i]['valuetype'] = 'string';
  
$modversion['config'][$i]['default'] = 'view_agenda-week';
  
$modversion['config'][$i]['options'] = array('view_calendar-month' => 'view_calendar-month'
                                               
'view_calendar-week' => 'view_calendar-week',
                                               
'view_year' => 'view_year',
                                               
'view_month' => 'view_month',
                                               
'view_week' => 'view_week',
                                               
'view_day' => 'view_day',
                                               
'view_agenda-week' => 'view_agenda-week',
                                               
'view_agenda-day' => 'view_agenda-day');


JJDai
Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

55 Personne(s) en ligne (44 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 55 | Plus ...