*/
class CRM_Admin_Page_PreferencesDate extends CRM_Core_Page_Basic {
- /**
- * The action links that we need to display for the browse screen.
- *
- * @var array
- */
- public static $_links = NULL;
-
public $useLivePageJS = TRUE;
/**
return 'CRM_Core_BAO_PreferencesDate';
}
- /**
- * Get action Links.
- *
- * @return array
- * (reference) of action links
- */
- public function &links() {
- if (!(self::$_links)) {
- self::$_links = [
- CRM_Core_Action::UPDATE => [
- 'name' => ts('Edit'),
- 'url' => 'civicrm/admin/setting/preferences/date',
- 'qs' => 'action=update&id=%%id%%&reset=1',
- 'title' => ts('Edit Date Type'),
- ],
- ];
- }
- return self::$_links;
- }
-
/**
* Run the page.
*
*
* Generated from xml/schema/CRM/Core/PreferencesDate.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:3f9c7b68e9dc1f9a677731328ffa5947)
+ * (GenCodeChecksum:c83fafaf0b7ee8513ce6de9844d7a729)
*/
/**
*/
public static $_log = TRUE;
+ /**
+ * Paths for accessing this entity in the UI.
+ *
+ * @var string[]
+ */
+ protected static $_paths = [
+ 'update' => 'civicrm/admin/setting/preferences/date?reset=1&action=update&id=[id]',
+ ];
+
/**
* @var int|string|null
* (SQL type: int unsigned)
* Whether to return the plural version of the title.
*/
public static function getEntityTitle($plural = FALSE) {
- return $plural ? ts('Preferences Dates') : ts('Preferences Date');
+ return $plural ? ts('Date Preferences') : ts('Date Preference');
}
/**
<comment>Define date preferences for the site</comment>
<add>2.0</add>
<log>true</log>
+ <title>Date Preference</title>
+ <paths>
+ <update>civicrm/admin/setting/preferences/date?reset=1&action=update&id=[id]</update>
+ </paths>
<field>
<name>id</name>
<title>Date Preference ID</title>