Thanks for your help but I need first to access to my website but I can't. This error is:
"
Fatal error: Call-time pass-by-reference has been removed in
/home/jmasirx1/public_html/Drupal/sites/all/modules/deletlibros/deletlibros.module on line
51"...
I worked with PHP 5.3 to create this custom module but x10hosting works with 5.4 and 5.5. The problem is:
If I change the "&" symbol before "$variable" my module doesn't work. There's a way to keep my module working without remove "&"?
Here's a fragment of my module:
"
// ATENCION!
// Tener en cuenta que usaremos una tabla "libro" dentro de la misma base de datos de Drupal
// Creamos el enlace para acceder al formulario
function deletlibros_menu() {
$items['eliminar_libro'] = array(
'title' => t('Eliminar libro existente'),
'page callback' => 'my_module_form_delete',
'access arguments' => array('Administrar configuracion DELETE'),
'description' => t('Eliminar libro existente'),
'type' => MENU_CALLBACK,
);
return $items;
}
// Para administrar permisos
function deletlibros_permission() {
return array(
'Permisos' => array(
'title' => 'Administrar configuracion DELETE',
'restrict access' => true,
)
);
}
// Enlace al primer formulario
function my_module_form_delete() {
return drupal_get_form('my_module_my_form3');
}
// Primer formulario
function my_module_my_form3($form, &$form_state) { <----- Here's the error (without &$form_state doesn't work)
$isbn_get = $_GET['isbn'];
drupal_set_message("Introduzca un ISBN valido, de lo contrario no se mostraran datos para editar.", 'status');
drupal_set_message("Puede ver la lista de los libros con sus ISBN respectivos <a href='
http://jmasir.tk/Drupal/todosloslibros'>aquí</a>.", 'status');
if (isset($form_state['storage']['page_two'])) {
return my_module_my_form3_page_two($form, &$form_state);
}
"