function drupalgap_load_module_details in DrupalGap 7
Same name and namespace in other branches
- 7.2 drupalgap.module \drupalgap_load_module_details()
Given a module name, this will ask drupalgap.org for its module details.
1 call to drupalgap_load_module_details()
File
- ./
drupalgap.module, line 608 - A module to provide a bridge between Drupal websites and PhoneGap mobile applications.
Code
function drupalgap_load_module_details($module) {
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL => 'http://www.drupalgap.org/?q=drupalgap/dgm_resources/project_download',
CURLOPT_POST => 1,
CURLOPT_POSTFIELDS => 'project_name=' . check_plain($module),
));
$result = drupal_json_decode(curl_exec($curl));
curl_close($curl);
return $result;
}