You are here

function config_pages_edit_form_submit in Config Pages 7

Form API submit callback for the config_pages form.

@todo remove hard-coded link

1 string reference to 'config_pages_edit_form_submit'
config_pages_edit_form in ./config_pages.admin.inc
Form callback: create or edit a config_pages.

File

./config_pages.admin.inc, line 414
ConfigPages editing UI.

Code

function config_pages_edit_form_submit(&$form, &$form_state) {
  $config_pages = entity_ui_controller('config_pages')
    ->entityFormSubmitBuildEntity($form, $form_state);

  // Add in created and changed times.
  if ($config_pages->is_new = isset($config_pages->is_new) ? $config_pages->is_new : 0) {
    $config_pages->created = time();
  }
  $config_pages->changed = time();
  $config_pages
    ->save();
  drupal_set_message(t('Configuration saved'));
}