function devel_execute_form

cis7 devel.module devel_execute_form()
cle7 devel.module devel_execute_form()
elmsmedia7 devel.module devel_execute_form()
icor7 devel.module devel_execute_form()
meedjum_blog7 devel.module devel_execute_form()
mooc7 devel.module devel_execute_form()

Generates the execute form.

1 call to devel_execute_form()
devel_execute_block_form in sites/all/modules/ulmus/devel/devel.module
Generates the execute block form.
1 string reference to 'devel_execute_form'
devel_menu in sites/all/modules/ulmus/devel/devel.module
Implements hook_menu().

File

sites/all/modules/ulmus/devel/devel.module, line 1264

Code

function devel_execute_form() {
  $form['execute']['code'] = array(
    '#type' => 'textarea',
    '#title' => t('PHP code to execute'),
    '#description' => t('Enter some code. Do not use <code>&lt;?php ?&gt;</code> tags.'),
    '#default_value' => (isset($_SESSION['devel_execute_code']) ? $_SESSION['devel_execute_code'] : ''),
    '#rows' => 20,
  );
  $form['execute']['op'] = array(
    '#type' => 'submit',
    '#value' => t('Execute'),
  );
  $form['#redirect'] = FALSE;
  if (isset($_SESSION['devel_execute_code'])) {
    unset($_SESSION['devel_execute_code']);
  }
  return $form;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.