1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-16 23:00:51 +03:00

Hooks for Check***Fields() methods

This commit is contained in:
Alexey Kachayev 2010-02-06 12:47:19 +00:00
parent d13b6a2115
commit a0ffa136b6
7 changed files with 36 additions and 4 deletions

View file

@ -505,7 +505,13 @@ class ActionBlog extends Action {
if (!func_check(getRequest('blog_limit_rating_topic'),'float')) {
$this->Message_AddError($this->Lang_Get('blog_create_rating_error'),$this->Lang_Get('error'));
$bOk=false;
}
}
/**
* Выполнение хуков
*/
$this->Hook_Run('ckeck_blog_fields', array('bOk'=>$bOk));
return $bOk;
}

View file

@ -487,6 +487,12 @@ class ActionLink extends Action {
} else {
$_REQUEST['topic_tags']=join(',',$aTagsNew);
}
/**
* Выполнение хуков
*/
$this->Hook_Run('ckeck_link_fields', array('bOk'=>$bOk));
return $bOk;
}
/**

View file

@ -288,7 +288,11 @@ class ActionPage extends Action {
$this->Message_AddError($this->Lang_Get('page_create_parent_page_error'),$this->Lang_Get('error'));
$bOk=false;
}
/**
* Выполнение хуков
*/
$this->Hook_Run('ckeck_page_fields', array('bOk'=>$bOk));
return $bOk;
}
}

View file

@ -497,6 +497,12 @@ class ActionQuestion extends Action {
} else {
$_REQUEST['topic_tags']=join(',',$aTagsNew);
}
/**
* Выполнение хуков
*/
$this->Hook_Run('ckeck_question_fields', array('bOk'=>$bOk));
return $bOk;
}
/**

View file

@ -274,7 +274,7 @@ class ActionRegistration extends Action {
*
* @return unknown
*/
protected function CheckInviteRegister() {
protected function CheckInviteRegister() {
if ($this->Session_Get('invite_code')) {
return true;
}

View file

@ -406,7 +406,12 @@ class ActionTalk extends Action {
} else {
$_REQUEST['talk_users']=join(',',$aUsersNew);
}
//$bOk=false;
/**
* Выполнение хуков
*/
$this->Hook_Run('ckeck_talk_fields', array('bOk'=>$bOk));
return $bOk;
}

View file

@ -539,6 +539,11 @@ class ActionTopic extends Action {
} else {
$_REQUEST['topic_tags']=join(',',$aTagsNew);
}
/**
* Выполнение хуков
*/
$this->Hook_Run('ckeck_topic_fields', array('bOk'=>$bOk));
return $bOk;
}
/**