You are here

function drupalgap_load_settings_as_string in DrupalGap 7

Same name and namespace in other branches
  1. 7.2 drupalgap.module \drupalgap_load_settings_as_string()

Loads the settings.js file as string.

2 calls to drupalgap_load_settings_as_string()
drupalgap_add_module_to_settings_file in ./drupalgap.module
Given a module name, this will add it to the settings.js file, right after the last module found in the file.
drupalgap_load_modules in ./drupalgap.module
Given a module type (contrib, custom), this loads the modules listed in settings.js and returns them as regex matches.

File

./drupalgap.module, line 578
A module to provide a bridge between Drupal websites and PhoneGap mobile applications.

Code

function drupalgap_load_settings_as_string() {
  if (!drupalgap_sdk_installed()) {
    return false;
  }
  return file_get_contents(drupalgap_path_to_settings_file());
}