ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

EE 2.x entry_submission_start does not fire before entry is updated!!

December 19, 2012 3:57pm

Subscribe [1]
  • #1 / Dec 19, 2012 3:57pm

    I set up a custom extension that runs on “entry_submission_start” hook.

    function functionName($entry_id, $meta, $data) {
    $query = mysql_query("SELECT field_id_34 FROM exp_channel_data WHERE entry_id = '".$entry_id."'");
    $assoc = mysql_fetch_assoc($query);

    echo $assoc['field_id_34'];
    }

    This is the method that should run. The result is it echoes out the new field value and not the one that used to exist.

    I am under the impression this hook would get called before any data is updated, but that is not my findings

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases