Commit 7ff44499 authored by alexpott's avatar alexpott

Issue #2002444 by fmizzell: Rename Views method default_argument_form() to defaultArgumentForm().

parent c4e52bb6
......@@ -449,7 +449,7 @@ function default_actions($which = NULL) {
'default' => array(
'title' => t('Provide default value'),
'method' => 'default_default',
'form method' => 'default_argument_form',
'form method' => 'defaultArgumentForm',
'has default argument' => TRUE,
'default only' => TRUE, // this can only be used for missing argument, not validation failure
'breadcrumb' => TRUE, // generate a breadcrumb to here
......@@ -496,7 +496,7 @@ function default_actions($which = NULL) {
* Provide a form for selecting the default argument when the
* default action is set to provide default argument.
*/
function default_argument_form(&$form, &$form_state) {
public function defaultArgumentForm(&$form, &$form_state) {
$plugins = Views::pluginManager('argument_default')->getDefinitions();
$options = array();
......
......@@ -47,8 +47,8 @@ class Date extends Formula {
/**
* Add an option to set the default value to the current date.
*/
function default_argument_form(&$form, &$form_state) {
parent::default_argument_form($form, $form_state);
public function defaultArgumentForm(&$form, &$form_state) {
parent::defaultArgumentForm($form, $form_state);
$form['default_argument_type']['#options'] += array('date' => t('Current date'));
$form['default_argument_type']['#options'] += array('node_created' => t("Current node's creation time"));
$form['default_argument_type']['#options'] += array('node_changed' => t("Current node's update time")); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment