warning
ciao scusatemi ma non capisco perchè nella parte amministrazione mi arriva questo warning:
Warning: Missing argument 2 for l(), called in /Users/leo/Sites/acquia-drupal7.19/sites/all/modules/contrib/ds/modules/ds_format/ds_format.module(66) : eval()'d code on line 10 and defined in l() (linea 2413 di /Users/leo/Sites/acquia-drupal7.19/includes/common.inc).
da quanto capisco io non gli arriva questo valore l() nel ds_format.module (cos'è sto 66? un nodo?) e sti : eval()'d code (?booh?) nella linea 10
che però è definito nel l() della linea 2413 nel common.inc ...giusto?
e io cosa dovrei fare? ho solo installato i moduli! cioè nel senso che non sono un programmatore per cui non capisco se basta cancellare qualche riga del codice o fare altro o lasciare così che tanto il sistema funziona....
allego anche i due rispettivo blocchi di codice, magari voi che ci capite qualcosa forse riuscite anche a faremi capire cosa vuol dire sta roba... vi anticipo che sarà dura ;) ma vi ringrazio cmq!
ds_format.module ca.linea 10
---------------------------------
/**
* Implements hook_filter_info().
*/
function ds_format_filter_info() {
$filters['ds_code'] = array(
'title' => t('Display Suite evaluator'),
'description' => t('This filter will only work in the Display Suite text format, machine name is <em>ds_code</em>. No other filters can be enabled either.'),
'process callback' => 'ds_format_php_eval',
'tips callback' => 'ds_format_filter_tips',
'cache' => FALSE,
);
return $filters;
}
------------------------------------
common.inc ca.linea 2413
------------------------------------
function l($text, $path, array $options = array()) {
global $language_url;
static $use_theme = NULL;
// Merge in defaults.
$options += array(
'attributes' => array(),
'html' => FALSE,
);
// Append active class.
if (($path == $_GET['q'] || ($path == '<front>' && drupal_is_front_page())) &&
(empty($options['language']) || $options['language']->language == $language_url->language)) {
$options['attributes']['class'][] = 'active';
}
// Remove all HTML and PHP tags from a tooltip. For best performance, we act only
// if a quick strpos() pre-check gave a suspicion (because strip_tags() is expensive).
if (isset($options['attributes']['title']) && strpos($options['attributes']['title'], '<') !== FALSE) {
$options['attributes']['title'] = strip_tags($options['attributes']['title']);
}
// Determine if rendering of the link is to be done with a theme function
// or the inline default. Inline is faster, but if the theme system has been
// loaded and a module or theme implements a preprocess or process function
// or overrides the theme_link() function, then invoke theme(). Preliminary
// benchmarks indicate that invoking theme() can slow down the l() function
// by 20% or more, and that some of the link-heavy Drupal pages spend more
// than 10% of the total page request time in the l() function.
if (!isset($use_theme) && function_exists('theme')) {
// Allow edge cases to prevent theme initialization and force inline link
// rendering.
if (variable_get('theme_link', TRUE)) {
drupal_theme_initialize();
$registry = theme_get_registry(FALSE);
// We don't want to duplicate functionality that's in theme(), so any
// hint of a module or theme doing anything at all special with the 'link'
// theme hook should simply result in theme() being called. This includes
// the overriding of theme_link() with an alternate function or template,
// the presence of preprocess or process functions, or the presence of
// include files.
$use_theme = !isset($registry['link']['function']) || ($registry['link']['function'] != 'theme_link');
$use_theme = $use_theme || !empty($registry['link']['preprocess functions']) || !empty($registry['link']['process functions']) || !empty($registry['link']['includes']);
}
else {
$use_theme = FALSE;
}
}
if ($use_theme) {
return theme('link', array('text' => $text, 'path' => $path, 'options' => $options));
}
// The result of url() is a plain-text URL. Because we are using it here
// in an HTML argument context, we need to encode it properly.
return '<a href="' . check_plain(url($path, $options)) . '"' . drupal_attributes($options['attributes']) . '>' . ($options['html'] ? $text : check_plain($text)) . '</a>';
}
-------------------------------------
ps per la cronaca utilizzo D7.19 ;)