You are here

function drupalgap_module_install_form in DrupalGap 7

Same name and namespace in other branches
  1. 7.2 drupalgap.module \drupalgap_module_install_form()
1 string reference to 'drupalgap_module_install_form'
drupalgap_modules_widget in ./drupalgap.module
Renders the widget to control the module's for the app from the settings page.

File

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

Code

function drupalgap_module_install_form($form, &$form_state) {
  $form['module'] = array(
    '#type' => 'textfield',
    '#title' => t('Install module'),
    '#description' => t('Enter the <em>machine name</em> of the module.'),
    '#field_prefix' => 'http://drupalgap.org/project/',
    '#size' => 16,
    '#required' => TRUE,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Install'),
  );
  return $form;
}