mvp
This commit is contained in:
@ -29,6 +29,7 @@ class BookmarksForms extends Forms {
|
||||
self::addHandler( 'exportBookmarks', __CLASS__, 'exportBookmarks' );
|
||||
self::addHandler( 'createDashboard', __CLASS__, 'createDashboard' );
|
||||
self::addHandler( 'editDashboard', __CLASS__, 'editDashboard' );
|
||||
self::addHandler( 'updateDashboard', __CLASS__, 'updateDashboard' );
|
||||
}
|
||||
|
||||
public static function createBookmark() {
|
||||
@ -190,6 +191,17 @@ class BookmarksForms extends Forms {
|
||||
return true;
|
||||
}
|
||||
|
||||
public static function updateDashboard() {
|
||||
if ( ! Input::exists( 'submit' ) ) {
|
||||
return false;
|
||||
}
|
||||
if ( !self::token() ) {
|
||||
Check::addUserError( 'There was an issue with your request.' );
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public static function editDashboard() {
|
||||
if ( ! Input::exists( 'submit' ) ) {
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user