Libraries API
Üdv!
Lenne ez a Libraries API nevü modul amit feltettem és bekapcsoltam az oldalamon (mert a drupal.org oldalon ezt ajánlják tetszőleges jelölőknek gmap-hoz) De így nem igazán tudom mit kellene tennie ennek a modulnak...
Az angol hogyan használjuk leírásban amit én kivettem valamivel ki kell egészítenem a modulomat amibe szeretnék egy ilyen könyvtárlistát vagy valami ilyesmi, de ez lenne a kérdésem is hogy ez micsoda mit csinál hogy működik, mit kell tenni hogy működjön?
Az angol leírás:
Usage
1. Come up with a sensible name for the library, one that most other module developers would use too. If some module already uses a library under certain name, re-use that name. In most cases, name is obvious, e.g. "ckeditor" for CKEditor javascript library, "spyc" for Spyc YAML parser library etc.
2. In your module use libraries_get_path($name) to get the location of the library files. $name is the unique name of the library you chose in (1.). A common pattern is:
if ($path = libraries_get_path($name)) {
// Do something with the library, knowing the path, for instance:
// drupal_add_js($path . '/example.js');
}
3. In the module installation instructions, instruct module users to download library under sites/all/libraries (or sites/sitename/libraries) within a folder named according to $library_name from (1). You can also include a Drush make file to let power-users download the library automatically.
4. Make sure your module's .info file includes
dependencies[] = libraries
That's it :)