Recent patches adds .info meta files to core. These are now used for enabling modules.

Attached are .info files for the CCK modules. They also include yet unused package and dependencies fields. Description strings are taken directly from the _help and contain the package and depedency strings from there as well.

The module descriptions are no longer needed in the _help hook so these could be removed as well.

CommentFileSizeAuthor
#2 cck_info.zip2.78 KBquicksketch
cck_info.tar.gz664 bytesneclimdul

Comments

karens’s picture

Wondering about the 'dependencies' and 'package' lines in these files. Should other cck field modules use the same lines in their .info files (i.e. the date module)? Or maybe the date module should use 'dependencies' but not 'package' since it's an external module rather than a packaged module?

quicksketch’s picture

StatusFileSize
new2.78 KB

Hooray, for info files! However, this needs some work.

  • Remove the bold, no point adding this since we're going to have a heirarchy eventually anyway
  • Keep it simple, we only know for sure that 'description' and 'name' are needed at the moment, none of the other variables do anything yet, so we should start small and work our way up

@KarenS, the best description I've found so far for what to include is here: http://drupal.org/node/76549#comment-120533, but those parameters are not for certain. Right now name and description are the only things that do anything, so we'll worry about package and dependencies when the time comes

Attached simplified .info files

neclimdul’s picture

docs here: http://drupal.org/node/64279#info
Packages and dependencies aren't documented as they are being reviewed still.
Dependencies: http://drupal.org/node/81631
Packages: http://drupal.org/node/81740
The syntax is correct in both cases.

drewish’s picture

Status: Needs review » Closed (duplicate)

Hopefully I won't offend anyone if I mark this as a duplicate and roll these .info files in with the patch to update cck for 5.0.