ho scritto un modulo che dovrebbe creare un content ma quando vado su administer site configuration e ci schiaccio sopra mi compare :
Fatal error: require_once() [function.require]: Failed opening required 'sites/all/modules/contenitore/system.admin.inc' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/miodrupal/includes/menu.inc on line 345
qualcuno mi sa aiutare???
il codice e':
<?php
function contenitore_all() {
// content variable that will be returned for display
$page_content = '';
$query = "SELECT vid,title from drupal.node";
// get the links (no range limit here)
$queryResult = db_query($query);
while ($links = db_fetch_object($queryResult)) {
$page_content .= l($links->title, 'node/'.$links->vid).'<br />';
}
if ($page_content == '') {
// no content from a week ago, let the user know
$page_content = "No events occurred on this site on this date in history.";
}
return $page_content;
}
?>
<?php
function contenitore_menu() {
$items = array();
//this was created earlier in tutorial 7.
$items['admin/settings/contenitore'] = array(
'title' => 'Covvvvvvvvitjhjgle settings',
'description' => 'Description of your contenitore date settings control',
'page callback' => 'drupal_get_form',
'page arguments' => array('contenitore_admin'),
'access arguments' => array('access administration pages'),
'type' => MENU_NORMAL_ITEM,
);
//this is added for this current tutorial.
$items['contenitore'] = array(
'title' => 'Titolo contenitore',
'page callback' => 'contenitore_all',
'access arguments' => array('access contenitore content'),
'type' => MENU_CALLBACK
);
return $items;
}
?>
grazie a tutti