function smiley_import_parse_plist in Smiley 6
Custom callback; Parse the plist information for a smiley package.
1 call to smiley_import_parse_plist()
File
- ./
smiley_import.module, line 171
Code
function smiley_import_parse_plist($plist_pack = NULL) {
include 'plist.inc';
$packs = array();
$key = array();
smiley_import_packs_plist($packs);
foreach ($packs as $pack) {
$path = dirname(__FILE__) . str_replace(drupal_get_path('module', 'smiley'), '', $pack->filename);
$plistDocument = new DOMDocument();
$plistDocument
->load($path);
$keys[$pack->name] = parsePlist($plistDocument);
}
if (!empty($plist_pack) && !empty($keys[$plist_pack])) {
return $keys[$plist_pack];
}
return $keys;
}