By weirdblue on
Hi everybody,
Im kind of new to drupal and I just downloaded the devel-5.x-1.x-dev.tar.gz.
How come this is buggy?
e.g. lots of dispensable commas at the end of arrays
...
function devel_menu($may_cache) {
...
...
$items[] = array('path' => 'devel/reference',
'title' => t('function reference'),
'callback' => 'devel_function_reference',
'access' => user_access('access devel information'),
'type' => MENU_CALLBACK,
);
$items[] = array('path' => 'devel/reinstall',
'title' => t('Reinstall modules'),
'callback' => 'devel_reinstall',
'access' => user_access('access devel information'),
'type' => MENU_CALLBACK,
);
...
...
Since Im new to Drupal (not to programming;), please let me know
in case, this is the wrong forum to place this.
Does anybody know where to download a stable devel-module verion?
thanks in advance
Markus Berges
Comments
=-=
I don't know that what you've found is a bug, however you can file a bug report using thelinks on the projects module page. You can also create a patch for the module if necessary.
-dev is the only release at this point and its stil being actively developed.
_____________________________________________________________________
My posts & comments are usually dripping with sarcasm.
If you ask nicely I'll give you a towel : )
thanks for your fast reply
since all the menu types were set to MENU_CALLBACK it didnt show up in my menu.
In the followin I replaced it by MENU_LOCAL_TASK and added a further item to it.
If someone experience the same problems, he/she may want to replace the
method by the followin :
... and to replace the dispensable commas in the other methods where
they use to show up after the last items within arrays
array(
$item,
...,
$item, // <= shouldnt be there
);
Yeah I think the module is
Yeah I think the module is kinda aimed at the sort of people who like to open up the .module file and parse it visually :-P then type the desired URL in
Actually though if you enable the relevant blocks that the module provides then I think you get access to most of the functionality you are after.
gpk
----
www.alexoria.co.uk
gpk
----
www.alexoria.co.uk
I believe the "dispensable" commas are standard coding
I believe the "dispensable" commas are standard coding for Drupal. I wouldn't call them bugs considering they don't cause any problems with drupal.
Refer to http://drupal.org/coding-standards and scroll down to Arrays