* make visible in the admin interface which version of drupal and modules are used (x.y.x where z 0!)

* optionally find out on drupal site what current major/minor version is and a list of known bugs that are solved

* optionally (long term) make a webbased install (get file, unpack, update.php etc..)

CommentFileSizeAuthor
#8 version.patch2.65 KBprofix898

Comments

moshe weitzman’s picture

Title: version in drupal » show drupal version to admins
Philippe’s picture

Could we modify the build daemon (or is it a cron job?) to do keyword substitution (perhaps only in one file)?

 echo 'You are running Drupal $Release: $, $Builddate: $'
//substituted to be:
echo 'You are running Drupal $Release: 4.4.3 $, $Builddate: 2004-07-04 $'
//or:
echo 'You are running Drupal $Release: cvs $, $Builddate: 2004-09-27 $'

Any other ideas?

Philippe’s picture

Could we modify the build daemon (or is it a cron job?) to do keyword substitution (perhaps only in one file)?

 echo 'You are running Drupal $Release: $, $Builddate: $'
//substituted to be:
echo 'You are running Drupal $Release: 4.4.3 $, $Builddate: 2004-07-04 $'
//or:
echo 'You are running Drupal $Release: cvs $, $Builddate: 2004-09-27 $'

Any other ideas?

jose reyero’s picture

Priority: Minor » Normal

I'll rise the priority of this one as I think it is very important for support issues and also when you are administering a number of Drupal sites it is a very important information, for security updates too.

judah’s picture

I'm thinking that we create a few new variables, major and minor version, in the drupal core module or base system. Then with a couple new functions we can access those variables with variable_get or the functions show below:

// note: i've been out of drupal text field creation for a while
settings_page_version_text_field_text_value = module_get_major_version('core') . "." . module_get_minor_version('core');
modules_page_version_text_field_text_value = module_get_major_version('mymodule') . "." . module_get_minor_version('mymodule');

We could also add a function that would parse the base system or any file for that matter and pull out the revision number:

settings_page_revision_text_field_text_value = get_cvs_revision_number("core.module");

function get_cvs_revision_number("myfile.module") {
   // open file 
   // parse first line and get cvs revision number
   // return revision number
}

i don't remember if cvs revision numbers are global to the modules. if they are then the revision number would be useless.

webchick’s picture

I think this is already in system.module in 4.7.2+?

killes@www.drop.org’s picture

The version is defined in system module as of 4.7.2, bu tit isn't shown to the admin yet.

profix898’s picture

StatusFileSize
new2.65 KB

Why not add a simple line at the top of modules page (admin/modules)?

bertboerland’s picture

Version: » 5.x-dev
Status: Active » Fixed

by now this is fixed. even with dependecies and modules that need updating.

only the installer isnt there yet but /me thinks that will be a contrib around 7 or so :-)

Anonymous’s picture

Status: Fixed » Closed (fixed)