In the doxygen for hook_libraries_info(), the library name is supposed to be given in

 *   - name: The official, human-readable name of the library.

, which also seems consistent with the actual implementation. However all of the examples have the library name given in $library['title'].

Lastly, neither of these is actually used in the display given when running drush libraries-list.

CommentFileSizeAuthor
#1 name-vs-title.patch1.57 KBtstoeckler
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tstoeckler’s picture

Status: Active » Needs review
FileSize
1.57 KB

'name' is the correct key. We used to have 'title' but we thought it best to be in line with what e.g. Drupal modules use. The examples in libraries.api.php still using 'title' is a bug (see attached patch).

drush libraries-list lists the machine name, because that is useful for developers, as that is what you need to call e.g. libraries_load() with.

Please note that this reasoning is not set in stone, so if you have any improvements regarding this, please share them.

bfroehle’s picture

Status: Needs review » Reviewed & tested by the community
tstoeckler’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for noticing and reviewing!
Committed #1 to DRUPAL-7--2.
http://drupal.org/cvs?commit=502758

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.